Skip to content

Commit 24188a3

Browse files
authored
refactor: remove restricted session field (#7543)
* add issue bot for prs * Update CHANGELOG.md * Update issue-bot.yml * remove session restriction artifacts * Update CHANGELOG.md * Update CHANGELOG.md
1 parent 2783245 commit 24188a3

File tree

4 files changed

+1
-3
lines changed

4 files changed

+1
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ ___
103103
- Remove support for MongoDB 3.6 which has reached its End-of-Life date and PostgreSQL 10 (Manuel Trezza) [#7315](https://github.com/parse-community/parse-server/pull/7315)
104104
- Remove support for Node 10 which has reached its End-of-Life date (Manuel Trezza) [#7314](https://github.com/parse-community/parse-server/pull/7314)
105105
- Remove S3 Files Adapter from Parse Server, instead install separately as `@parse/s3-files-adapter` (Manuel Trezza) [#7324](https://github.com/parse-community/parse-server/pull/7324)
106+
- Remove Session field `restricted`; the field was a code artifact from a feature that never existed in Open Source Parse Server; if you have been using this field for custom purposes, consider that for new Parse Server installations the field does not exist anymore in the schema, and for existing installations the field default value `false` will not be set anymore when creating a new session (Manuel Trezza) [#7543](https://github.com/parse-community/parse-server/pull/7543)
106107

107108
### Notable Changes
108109
- Added Parse Server Security Check to report weak security settings (Manuel Trezza, dblythy) [#7247](https://github.com/parse-community/parse-server/issues/7247)

spec/Schema.spec.js

-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,6 @@ describe('SchemaController', () => {
892892
objectId: { type: 'String' },
893893
updatedAt: { type: 'Date' },
894894
createdAt: { type: 'Date' },
895-
restricted: { type: 'Boolean' },
896895
user: { type: 'Pointer', targetClass: '_User' },
897896
installationId: { type: 'String' },
898897
sessionToken: { type: 'String' },

src/Controllers/SchemaController.js

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ const defaultColumns: { [string]: SchemaFields } = Object.freeze({
7070
},
7171
// The additional default columns for the _Session collection (in addition to DefaultCols)
7272
_Session: {
73-
restricted: { type: 'Boolean' },
7473
user: { type: 'Pointer', targetClass: '_User' },
7574
installationId: { type: 'String' },
7675
sessionToken: { type: 'String' },

src/RestWrite.js

-1
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,6 @@ RestWrite.createSession = function (
891891
objectId: userId,
892892
},
893893
createdWith,
894-
restricted: false,
895894
expiresAt: Parse._encode(expiresAt),
896895
};
897896

0 commit comments

Comments
 (0)