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

Fix incorrect detection of cosign being required blocking the registration #4889

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

sergei-maertens
Copy link
Member

@sergei-maertens sergei-maertens commented Dec 6, 2024

Closes #3901 - depends on #4888

Changes

  • Added regression test(s)
  • Fixed cosign state not taking the logic/dynamic behaviour of cosign component into account

Checklist

Check off the items that are completed or not relevant.

  • Impact on features

    • Checked copying a form
    • Checked import/export of a form
    • Config checks in the configuration overview admin page
    • Problem detection in the admin email digest is handled
  • Release management

    • I have labelled the PR as "needs-backport" accordingly
  • I have updated the translations assets (you do NOT need to provide translations)

    • Ran ./bin/makemessages_js.sh
    • Ran ./bin/compilemessages_js.sh
  • Commit hygiene

    • Commit messages refer to the relevant Github issue
    • Commit messages explain the "why" of change, not the how

Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.62%. Comparing base (3e7b959) to head (3bd0286).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4889   +/-   ##
=======================================
  Coverage   96.62%   96.62%           
=======================================
  Files         757      757           
  Lines       25945    25952    +7     
  Branches     3419     3420    +1     
=======================================
+ Hits        25069    25076    +7     
  Misses        613      613           
  Partials      263      263           

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

@sergei-maertens sergei-maertens force-pushed the issue/3901-cosign-required-regression-test branch 2 times, most recently from e7529cf to bdfca4c Compare December 9, 2024 14:42
@sergei-maertens sergei-maertens marked this pull request as ready for review December 9, 2024 14:43
Copy link
Contributor

@vaszig vaszig left a comment

Choose a reason for hiding this comment

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

I also missed that check during my review..Seems fine now.

A required but hidden cosign component should not block the submission
registration.
When cosign components are (dynamically) hidden, this effectively makes
the form/submission *not* a cosign form. However, due to logic not
being taken into account, the mere presence of a required cosign
component would block the registration by waiting for cosign.
@sergei-maertens sergei-maertens force-pushed the issue/3901-cosign-required-regression-test branch from bdfca4c to 3bd0286 Compare December 10, 2024 15:51
@sergei-maertens
Copy link
Member Author

I also missed that check during my review..Seems fine now.

nah it was an old thing, not something that broke in my cosign rework. the refactor made it possible to fix this older reported issue :)

@sergei-maertens sergei-maertens merged commit 81094f7 into master Dec 10, 2024
26 of 29 checks passed
@sergei-maertens sergei-maertens deleted the issue/3901-cosign-required-regression-test branch December 10, 2024 16:03
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.

Co-sign component stalls submission even when field is hidden
2 participants