1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/src/migrations
andreas-unleash 350b55644a
Feat/project api token permissions (#3065)
<!-- Thanks for creating a PR! To make it easier for reviewers and
everyone else to understand what your changes relate to, please add some
relevant content to the headings below. Feel free to ignore or delete
sections that you don't think are relevant. Thank you! ❤️ -->

## About the changes
<!-- Describe the changes introduced. What are they and why are they
being introduced? Feel free to also add screenshots or steps to view the
changes if they're visual. -->
Define and implements Project api token permissions
Assign permissions to existing roles
Adjust UI to support them 
Adjust BE to implement

---------

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
2023-02-17 12:15:36 +02:00
..
.eslintrc Fix OOM with eslint in migrations (#2545) 2022-11-28 15:16:19 +01:00
20141020151056-initial-schema.js
20141110144153-add-description-to-features.js
20141117200435-add-parameters-template-to-strategies.js
20141117202209-insert-default-strategy.js
20141118071458-default-strategy-event.js
20141215210141-005-archived-flag-to-features.js
20150210152531-006-rename-eventtype.js
20160618193924-add-strategies-to-features.js
20161027134128-create-metrics.js
20161104074441-create-client-instances.js
20161205203516-create-client-applications.js
20161212101749-better-strategy-parameter-definitions.js
20170211085502-built-in-strategies.js
20170211090541-add-default-strategies.js
20170306233934-timestamp-with-tz.js
20170628205541-add-sdk-version-to-client-instances.js
20190123204125-add-variants-to-features.js
20191023184858-flexible-rollout-strategy.js
20200102184820-create-context-fields.js
20200227202711-settings.js
20200329191251-settings-secret.js
20200416201319-create-users.js
20200429175747-users-settings.js
20200805091409-add-feature-toggle-type.js refactor: create migration to update feature types description 2022-01-19 19:54:49 +01:00
20200805094311-add-feature-type-to-features.js
20200806091734-add-stale-flag-to-features.js
20200810200901-add-created-at-to-feature-types.js
20200928194947-add-projects.js
20200928195238-add-project-id-to-features.js
20201216140726-add-last-seen-to-features.js
20210105083014-add-tag-and-tag-types.js
20210119084617-add-addon-table.js
20210121115438-add-deprecated-column-to-strategies.js
20210127094440-add-tags-column-to-events.js
20210208203708-add-stickiness-to-context.js
20210212114759-add-session-table.js
20210217195834-rbac-tables.js
20210218090213-generate-server-identifier.js
20210302080040-add-pk-to-client-instances.js
20210304115810-change-default-timestamp-to-now.js
20210304141005-add-announce-field-to-application.js
20210304150739-add-created-by-to-application.js
20210322104356-api-tokens-table.js
20210322104357-api-tokens-convert-enterprise.js
20210323073508-reset-application-announcements.js
20210409120136-create-reset-token-table.js
20210414141220-fix-misspellings-in-role-descriptions.js
20210415173116-rbac-rename-roles.js
20210421133845-add-sort-order-to-strategies.js
20210421135405-add-display-name-and-update-description-for-strategies.js
20210423103647-lowercase-all-emails.js
20210428062103-user-permission-to-rbac.js
20210428103922-patch-role-table.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210428103923-onboard-projects-to-rbac.js
20210428103924-patch-admin_role.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210428103924-patch-admin-role-name.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210428103924-patch-role_permissions.js fix: add migration patch 2022-02-24 14:08:41 +01:00
20210504101429-deprecate-strategies.js
20210520171325-update-role-descriptions.js
20210602115555-create-feedback-table.js
20210610085817-features-strategies-table.js
20210615115226-migrate-strategies-to-feature-strategies.js
20210618091331-project-environments-table.js
20210618100913-add-cascade-for-user-feedback.js
20210624114602-change-type-of-feature-archived.js
20210624114855-drop-strategies-column-from-features.js
20210624115109-drop-enabled-column-from-features.js
20210625102126-connect-default-project-to-global-environment.js
20210629130734-add-health-rating-to-project.js
20210830113948-connect-projects-to-global-envrionments.js
20210831072631-add-sort-order-and-type-to-env.js
20210907124058-add-dbcritic-indices.js
20210907124850-add-dbcritic-primary-keys.js
20210908100701-add-enabled-to-environments.js
20210909085651-add-protected-field-to-environments.js
20210913103159-api-keys-scoping.js
20210915122001-add-project-and-environment-columns-to-events.js
20210920104218-rename-global-env-to-default-env.js
20210921105032-client-api-tokens-default.js
20210922084509-add-non-null-constraint-to-environment-type.js
20210922120521-add-tag-type-permission.js
20210928065411-remove-displayname-from-environments.js
20210928080601-add-development-and-production-environments.js
20210928082228-connect-default-environment-to-all-existing-projects.js
20211004104917-client-metrics-env.js
20211011094226-add-environment-to-client-instances.js
20211013093114-feature-strategies-parameters-not-null.js
20211029094324-set-sort-order-env.js
20211105104316-add-feature-name-column-to-events.js
20211105105509-add-predata-column-to-events.js
20211108130333-create-user-splash-table.js
20211109103930-add-splash-entry-for-users.js
20211126112551-disable-default-environment.js
20211130142314-add-updated-at-to-projects.js
20211202120808-add-custom-roles.js refactor: drop permissions table on down migration (#1699) 2022-06-13 09:08:46 +02:00
20211209205201-drop-client-metrics.js
20220103134659-add-permissions-to-project-roles.js
20220103143843-add-permissions-to-editor-role.js
20220111112804-update-permission-descriptions.js
20220111115613-move-feature-toggle-permission.js
20220111120346-roles-unique-name.js
20220111121010-update-project-for-editor-role.js
20220111125620-role-permission-empty-string-for-non-environment-type.js
20220119182603-update-toggle-types-description.js refactor: create migration to update feature types description 2022-01-19 19:54:49 +01:00
20220125200908-convert-old-feature-events.js fix: add migration for old feature events (#1300) 2022-01-26 13:39:59 +01:00
20220128081242-add-impressiondata-to-features.js Feat/impression data (#1310) 2022-02-03 11:06:51 +01:00
20220129113106-metrics-counters-as-bigint.js fix: metric counters should use bigint (#1313) 2022-01-31 08:50:11 +01:00
20220131082150-reset-feedback-form.js fix: set migration for feedbacK (#1315) 2022-01-31 09:57:33 +01:00
20220224081422-remove-project-column-from-roles.js fix: remove project column from roles if exists 2022-02-24 14:08:41 +01:00
20220224111626-add-current-time-context-field.js Feat/new constraint operators (#1397) 2022-03-04 17:29:42 +01:00
20220307130902-add-segments.js feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
20220331085057-add-api-link-table.js feat: Implement multi token support for client tokens 2022-04-06 08:11:41 +02:00
20220405103233-add-segments-name-index.js fix: reject duplicate segment names (#1475) 2022-04-06 14:01:50 +01:00
20220408081222-clean-up-duplicate-foreign-key-role-permission.js fix: remove duplicate foreign key (#1491) 2022-04-08 10:34:22 +02:00
20220411103724-add-legal-value-description.js feat: add context value descriptions (#1496) 2022-04-19 08:40:07 +02:00
20220425090847-add-token-permission.js feat: add READ_API_TOKEN permission (#1528) 2022-04-26 10:24:34 +02:00
20220511111823-patch-broken-feature-strategies.js fix: Repair feature strategies with broken project ids (#1593) 2022-05-11 13:41:35 +02:00
20220511124923-fix-patch-broken-feature-strategies.js fix: correct patch for feature project id 2022-05-11 14:52:38 +02:00
20220528143630-dont-cascade-environment-deletion-to-apitokens.js fix: Issue #1444 - API import with drop=true deletes existing client keys (#1668) 2022-06-09 15:56:13 +01:00
20220603081324-add-archive-at-to-feature-toggle.js Added missing archivedAt to featureSchema (#1779) 2022-07-01 11:51:26 +00:00
20220704115624-add-user-groups.js Feat/grouping (#1845) 2022-07-21 16:23:56 +02:00
20220711084613-add-projects-and-environments-for-addons.js feat: support filtering on project and environment fields for events (#1801) 2022-07-12 12:13:25 +00:00
20220808084524-add-group-permissions.js Fix/remove group owner concept (#1905) 2022-08-11 08:23:08 +02:00
20220808110415-add-projects-foreign-key.js Deleting project does not delete entry group_role table (#1896) 2022-08-10 07:45:59 +00:00
20220816121136-add-metadata-to-api-keys.js Migration for API key metadata (#1930) 2022-08-16 16:38:20 +02:00
20220817130250-alter-api-tokens.js Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
20220908093515-add-public-signup-tokens.js Update public signup migration files (#2120) 2022-09-30 15:20:24 +03:00
20220912165344-pat-tokens.js Add description to PAT (#2090) 2022-09-26 15:42:39 +03:00
20220916093515-add-url-to-public-signup-tokens.js Fix/oas response (#2068) 2022-09-26 13:06:30 +03:00
20220927110212-add-enabled-to-public-signup-tokens.js Feat/invite user (#2061) 2022-09-30 13:01:32 +02:00
20221010114644-pat-auto-increment.js Change PAT primary key from string to number (#2163) 2022-10-10 13:35:12 +03:00
20221011155007-add-user-groups-mappings.js feat: add SSO mappings to groups (#2175) 2022-10-13 11:34:47 +01:00
20221103111940-fix-migrations.js Remove manually added migrations and fix the scripts (#2324) 2022-11-03 14:05:47 +02:00
20221103112200-change-request.js Remove manually added migrations and fix the scripts (#2324) 2022-11-03 14:05:47 +02:00
20221103125732-change-request-remove-unique.js Remove uniqueness from change requests merging (#2332) 2022-11-04 10:57:45 +02:00
20221104123349-change-request-approval.js Change request approvals table (#2347) 2022-11-09 10:40:47 +02:00
20221107121635-move-variants-to-per-environment.js Fix error in migration when updating feature_environments (#2607) 2022-12-06 14:57:54 +02:00
20221107132528-change-request-project-options.js Add changeRequestEnabled to project and project_environments (#2357) 2022-11-09 14:44:53 +02:00
20221108114358-add-change-request-permissions.js Feat/change request permissions (#2382) 2022-11-10 11:08:58 +01:00
20221110104933-add-change-request-settings.js Feat/add change request settings (#2390) 2022-11-11 10:09:25 +02:00
20221110144113-revert-change-request-project-options.js Feat/add change request settings (#2390) 2022-11-11 10:09:25 +02:00
20221114150559-change-request-comments.js Changeset comments schema (#2425) 2022-11-15 09:15:56 +01:00
20221115072335-add-required-approvals.js Change requests - add multiple reviewers (#2448) 2022-11-17 11:08:29 +02:00
20221121114357-add-permission-for-environment-variants.js Permission for variant environments (#2490) 2022-11-22 11:54:04 +02:00
20221121133546-soft-delete-user.js Add possibility to soft delete users (#2497) 2022-11-23 09:30:54 +02:00
20221124123914-add-favorites.js Favorite features (#2550) 2022-11-29 16:06:08 +01:00
20221125185244-change-request-unique-approvals.js make approvals unique (#2534) 2022-11-28 07:19:15 +01:00
20221128165141-change-request-min-approvals.js store min approvals as part of change request creation (#2548) 2022-11-29 09:40:40 +01:00
20221205122253-skip-change-request.js skip change request (#2598) 2022-12-05 15:38:17 +01:00
20221220160345-user-pat-permissions.js feat: allows creation of PATs for other users (#2718) 2023-01-02 10:49:57 +00:00
20221221144132-service-account-users.js feat: enterprise service accounts (BE) (#2806) 2023-01-03 15:15:32 +00:00
20230125065315-project-stats-table.js fix: down migration (#3015) 2023-01-27 16:13:59 +01:00
20230127111638-new-project-stats-field.js Feat/project stats members (#3009) 2023-01-27 13:13:41 +01:00
20230130113337-revert-user-pat-permissions.js fix: limit creation of other users PATs (adapting) (#3019) 2023-01-31 08:40:23 +00:00
20230208084046-project-api-token-permissions.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230208093627-assign-project-api-token-permissions-editor.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230208093750-assign-project-api-token-permissions-owner.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
20230208093942-assign-project-api-token-permissions-member.js Feat/project api token permissions (#3065) 2023-02-17 12:15:36 +02:00
default-strategies.json
flexible-rollout-strategy.json