-
Notifications
You must be signed in to change notification settings - Fork 17
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
User select and sharing of sample page with creators #830
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #830 +/- ##
==========================================
+ Coverage 68.49% 68.62% +0.12%
==========================================
Files 62 62
Lines 3955 3993 +38
==========================================
+ Hits 2709 2740 +31
- Misses 1246 1253 +7
|
datalab Run #2843
Run Properties:
|
Project |
datalab
|
Branch Review |
ml-evs/creators-ui
|
Run status |
Passed #2843
|
Run duration | 07m 31s |
Commit |
902e854bc2 ℹ️: Merge f7aa49bf9904e929c7560f9624d3a48f060c272c into f58a5eddb99e734efbb5585b7466...
|
Committer | Matthew Evans |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
471
|
View all changes introduced in this branch ↗︎ |
493b915
to
9aa4708
Compare
6fa9afc
to
259955f
Compare
c0bb29a
to
a055f7a
Compare
a055f7a
to
6f84324
Compare
6f84324
to
cc83db0
Compare
2ea51fb
to
e9cae07
Compare
efb38eb
to
74d3674
Compare
f0c37f6
to
b0a65ff
Compare
- Run Pydantic validation in search-users endpoint - Ensure creator ID is returned by `/items` endpoint within creators object Add specialised route for adding creators to items - Make it so users cannot remove themselves nor the original creator from creators lists
Add contact_email to the API response when searching user to display Gravatar Icon inside the Creators vSelect Filter user that are already been selected to not appear in the vSelect Update creators doesn't trigger the 'Unsaved change' Add toggleable creators to cell type, and try to limit creator display names
7b3dabd
to
047fe7d
Compare
- Make sure creators order is preserved in lookup - Better handle case of item with no creators - Better error messages and handling of edge cases - Better client-side handling of edge cases and invalid inputs in creator selection - Tweak permissions test - Fix typo... - Use data-test-id for better encapsulation of dropdown testing
047fe7d
to
f7aa49b
Compare
This has been deployed on @PeterKraus's deployment for a few weeks now and seems to be working well (pending future enhancements to also apply it to collections). Since all I've done since then is add data-testid's to get the e2e tests working, I'm going to take responsibility and merge this now... |
This PR adds a user select and toggleable editable option to the creator list for items.
It should prevent the user from removing themselves, and should potentially prevent the user from removing other people (i.e. append-only share), or some more tortured logic where the "first" creator in the list takes precedence.
This also adds a new API route
PATCH /items/<refcode>/permissions
for this use case, with some tests.Works similarly to the toggleable collection block, except that API call is made when the editing state is completed, and has a confirmation dialog.
Some outstanding things (for this PR or otherwise):