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

#2845 Fixed message validation in event search #2899

Merged

Conversation

Patrykb0802
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented May 27, 2024

Java Script Mocha Unit Test Results

268 tests  ±0   268 ✅ ±0   4s ⏱️ ±0s
 70 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 3a79d78. ± Comparison against base commit 5b27b3d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented May 27, 2024

Java JUnit Test Results

2 050 tests  +9   2 050 ✅ +9   26s ⏱️ ±0s
  105 suites ±0       0 💤 ±0 
  105 files   ±0       0 ❌ ±0 

Results for commit 3a79d78. ± Comparison against base commit 5b27b3d.

♻️ This comment has been updated with latest results.

@Limraj Limraj added this to the 2.7.8 milestone May 31, 2024
- Simplified validation for event id and max results checking if these two parameters are positive integers
@Patrykb0802 Patrykb0802 requested a review from SoftQ as a code owner June 12, 2024 06:46
- Separated search form validation function from search function
- Changed messages display mechanism
} else {
doSearchOld();
}
}

function validateSearchForm(){
let messages = [];
if (!isValid(eventId.value)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where do these eventId values ​​come from?
Just use the same scheme as in the previous task #2919

- Changed validation mechanism
@Patrykb0802 Patrykb0802 requested a review from Limraj June 21, 2024 10:13
- Changed variables names for more appropriate
Copy link
Collaborator

@Limraj Limraj left a comment

Choose a reason for hiding this comment

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

An error message appears below the field with the incorrect value. Messages are reset if the field value is corrected:

image

image

image

image

@Limraj Limraj merged commit a9ff78d into release/2.7.8 Jun 21, 2024
8 checks passed
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