-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Angular and Its Dependencies #2085
Conversation
Size Change: -570 kB (-17%) 👏 Total Size: 2.88 MB
ℹ️ View Unchanged
|
@@ -111,8 +112,8 @@ export const uploadAnnotationsProjectMenuItem = menuRoute({ | |||
icon: ["fas", "file-import"], | |||
label: "Batch Upload Annotations", | |||
parent: projectMenuItem, | |||
// TODO Change to isProjectEditorPredicate | |||
predicate: isAdminPredicate, | |||
// TODO: Once functionality is implemented, this should be changed to isProjectEditorPredicate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it?
you should rely on a capability from the server if it exists...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My point rather is that assuming someone can edit a project means that they can upload annotations is not correct.
From my memory of the servers permissions: only owners can edit projects but anyone with writer can upload annotations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0aea7c9
to
2a48f37
Compare
Fixes: #2077 Ran ng update Fixed tests for angular 15 Updated ng express Updated to angular 16 Removed override Got client working on ng 16 Updated other libraries Commented out broken test Changed to esbuild Uncommented not working test Fixed time component bug Reverted test changes Updated http-status Update ng-spectator Upgraded dependencies Fixed POSIX compliance for many files Fixed baw-client tests Improved typing of baw-client.component.spec.ts Finished dependency upgrade Fixed ssr CI Updated node version in docker container PR review changes Fixed is wip predicate Added isProjectEditorPredicate Fixed sass transpiler errors Reverted @vvo/tzdb upgrade Reverted saas working changes
2a48f37
to
fa2d150
Compare
I've done some testing using staging data and there are no regressions Given that this PR will impact almost every function of the web client, are you all good for me to merge after CI passes? |
Upgrade Angular and Its Dependencies
We have several outdated dependencies, this pull request updates all the dependencies
You can see all the breaking changes due to our migration from ngx 14 -> 16 here
Although, a lot of tests were modified due to breaking changes in ng-mocks (see below)
Changes
ng update
command)@use
keyword instead of@import
Problems
None
Issues
Fixes: #2077
Visual Changes
None
Final Checklist
npm run lint
)npm run test:all
)