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

[GH-33] Require events value are not emtpy upon a subscription save #65

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

jfrerich
Copy link
Contributor

Summary

This PR checks that a required dropdown event has at non-empty array and applies that check for the events dropdown.

Ticket Link

fixes #33

@jfrerich jfrerich added 2: Dev Review Requires review by a core committer 3: QA Review Requires review by a QA tester labels Jul 15, 2020
@jfrerich jfrerich requested review from levb and mickmister July 15, 2020 22:35
@levb levb requested a review from DHaussermann July 16, 2020 14:24
@levb levb removed the 2: Dev Review Requires review by a core committer label Jul 16, 2020
@hanzei hanzei added this to the v1.3.0 milestone Jul 20, 2020
@DHaussermann
Copy link

@jfrerich This change does prevent the save. however, no validation message appears when events are left empty. This is a bit confusing because the UI just looks non-responsive.

Ideally this would show the text This field is required. the way the other ones do when the're missing.

@jfrerich
Copy link
Contributor Author

jfrerich commented Aug 3, 2020

@DHaussermann, can you double-check the message is not showing? When I click Save Subscription with empty events, I see the message appear.

image

@DHaussermann
Copy link

@jfrerich - This is strange. I am not seeing this text. I seem to get a JS error in the browser console.

  • Redeployed this
  • Tried refreshing and clearing cache
  • Tested in browser and desktop
  • Occurs on add and edit
    Confluence-events

@DHaussermann
Copy link

@jfrerich any thoughts on why we aren't seeing the same thing here? Should we connect or Zoom to see if we can sort it out?

@codecov-commenter
Copy link

Codecov Report

Merging #65 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #65   +/-   ##
=======================================
  Coverage   29.48%   29.48%           
=======================================
  Files           8        8           
  Lines         234      234           
=======================================
  Hits           69       69           
  Misses        153      153           
  Partials       12       12           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 05cc4cf...23de01a. Read the comment docs.

@jfrerich
Copy link
Contributor Author

@DHaussermann. Thanks for catching edge case. For future reference, the select modal value is different when removing all events individually vs clearing all of them with the X in the RHS of the select box.

value = [] when clicking large X on RHS
value = null when remove each event individually.

This is ready for another review.

Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed

  • Confirmed validation on events is working as expected
  • Regression tested other other field validation
  • Issue above has now been resolved
    Thanks @jfrerich for solving the edge case.
    LGTM!

@jfrerich jfrerich added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Aug 12, 2020
@jfrerich jfrerich merged commit eed9fc7 into master Aug 12, 2020
@jfrerich jfrerich deleted the GH-33-require-events-selected branch August 12, 2020 15:17
This was referenced Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A subscription can be saved with no events selected
6 participants