Skip to content
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

Merged
merged 7 commits into from
Feb 17, 2019

Conversation

chiatt
Copy link
Member

@chiatt chiatt commented Feb 17, 2019

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

set defaultconfig = jsonb_set(defaultconfig, '{rerender}', to_jsonb(true), true)
where w.name in ('map-widget', 'file-widget', 'iiif-widget');
""",
"""
Copy link
Contributor

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

if len(tile.provisionaledits.keys()) > 0:
if len(tile.data) == 0:
isfullyprovisional = True
if user_is_reviewer == False:
Copy link
Contributor

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:'

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)]}
Copy link
Contributor

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)

# 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:
Copy link
Contributor

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:'

@coveralls
Copy link

coveralls commented Feb 17, 2019

Coverage Status

Coverage increased (+0.03%) to 40.373% when pulling dcded50 on 4384_update_widgets_in_prov_review into 8d3a799 on master.

@chiatt chiatt merged commit d56a917 into master Feb 17, 2019
@chiatt chiatt deleted the 4384_update_widgets_in_prov_review branch February 20, 2019 00:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants