-
Notifications
You must be signed in to change notification settings - Fork 137
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
Updates complex widgets in provisional edit review #4584
Conversation
…l edit review. re #4384
set defaultconfig = jsonb_set(defaultconfig, '{rerender}', to_jsonb(true), true) | ||
where w.name in ('map-widget', 'file-widget', 'iiif-widget'); | ||
""", | ||
""" |
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.
E128 continuation line under-indented for visual indent
arches/app/views/resource.py
Outdated
if len(tile.provisionaledits.keys()) > 0: | ||
if len(tile.data) == 0: | ||
isfullyprovisional = True | ||
if user_is_reviewer == False: |
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.
E712 comparison to False should be 'if cond is False:' or 'if not cond:'
arches/app/views/resource.py
Outdated
isfullyprovisional = True | ||
if user_is_reviewer == False: | ||
if str(request.user.id) in tile.provisionaledits: | ||
tile.provisionaledits = {str(request.user.id): tile.provisionaledits[str(request.user.id)]} |
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.
E501 line too long (123 > 119 characters)
arches/app/views/resource.py
Outdated
# if the tile has authoritaive data and the current user is not the owner, | ||
# we don't send the provisional data of other users back to the client. | ||
tile.provisionaledits = None | ||
if isfullyprovisional == True: |
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.
E712 comparison to True should be 'if cond is True:' or 'if cond:'
Description of Change
Forces the map, file, and iiif widgets to re-render when a reviewer switches between user edits during a provisional edit review allowing the reviewer to see the provisional edit data. re #4384