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

#336 bugfix from link_menu_item to modal_menu_item: discard changes link #360

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

svandeneertwegh
Copy link
Contributor

@svandeneertwegh svandeneertwegh commented Oct 31, 2023

Description

The 'discard changes' link in the versioning menu item (toolbar) is with this PR changed from add_link_item to add_modal_item.

  • [v ] I have opened this pull request against master
  • I have added or modified the tests when changing logic
  • I have followed the conventional commits guidelines to add meaningful information into the changelog
  • I have read the contribution guidelines and I have joined #workgroup-pr-review on
    Slack to find a “pr review buddy” who is going to review my pull request.

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dda7f5d) 90.86% compared to head (a0aafc7) 90.86%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #360   +/-   ##
=======================================
  Coverage   90.86%   90.86%           
=======================================
  Files          72       72           
  Lines        2530     2530           
  Branches      356      356           
=======================================
  Hits         2299     2299           
  Misses        170      170           
  Partials       61       61           
Files Coverage Δ
djangocms_versioning/cms_toolbars.py 96.90% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fsbraun
Copy link
Member

fsbraun commented Nov 7, 2023

@svandeneertwegh I have two observations:

  • Upon confirming to discard changes, the modal does not close. Instead, the version list of the object is shown in the modal. I think the modal would need to close, and the page should probably redirect to the preview of the published version.
  • It seems to me that the draft version actually is not discarded. I am not sure why. But it appears to stay in the version list shown in the modal.

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.

2 participants