Skip to content

Iqss/8846 fix popup#8855

Merged
kcondon merged 5 commits intoIQSS:developfrom
GlobalDataverseCommunityConsortium:IQSS/8846-fix_popup
Jul 27, 2022
Merged

Iqss/8846 fix popup#8855
kcondon merged 5 commits intoIQSS:developfrom
GlobalDataverseCommunityConsortium:IQSS/8846-fix_popup

Conversation

@qqmyers
Copy link
Member

@qqmyers qqmyers commented Jul 22, 2022

What this PR does / why we need it: Replacement for #8849 that shows the correct difference from develop.

Fixes issue. Also fixes a related issue that the popup was not showing on the Edit Template page (i.e. for the dataset description). That may have been broken longer.

Which issue(s) this PR closes:

Closes #8846

Special notes for your reviewer: Looks like the change in how dv_rebind... was called made it's no argument constructor for popoverHTML be the one that initialized the popup. The popup, with the correct title and list of tags is called from the dataset and dataverse pages as well so it looks like just removing the no arg call fixes things.

For the template page, it looks like there hasn't been any call to the popoverHTML function with parameters for a while (the thing that made the dataverse and dataset pages work after removing the line noted above). So - guessing this has been broken earlier.

Suggestions on how to test this:

See issue - 3 places: check the dataset/metadata/description popup and the one in the issue for the dataverse description, and the dataset description in the template edit page. and verify that you see the tags.

Key thing to check is whether the popup is still there after some ajax refresh of the page. (Spot checking by changing the template used for a new dataset (suggested by @scolapasta) suggests it does still work, but perhaps there are other situations where it won't).

@qqmyers qqmyers requested a review from pdurbin July 22, 2022 18:00
@pdurbin pdurbin self-assigned this Jul 25, 2022
Copy link
Member

@pdurbin pdurbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be a good fix. Note that when I deployed the branch the problem was still present until I hit Shift-Refesh.

@pdurbin pdurbin removed their assignment Jul 25, 2022
@kcondon kcondon self-assigned this Jul 27, 2022
@kcondon kcondon merged commit 0a46c04 into IQSS:develop Jul 27, 2022
@pdurbin pdurbin added this to the 5.12 milestone Aug 2, 2022
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.

HTML tags popup is blank, doesn't show allowed tags

3 participants