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 the BookInputConfiguration failing upon validations being run. #466

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

Robbware
Copy link
Contributor

@Robbware Robbware commented Oct 4, 2023

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the COMET-WEB code style guidelines
  • I have provided test coverage for my change (where applicable)

Description

I've had to refactor this so that we read the configuration on the parent component (the EditorPopup) instead of the child component (the InputEditor) as the validations were being done on the EditorPopup and since that component wasn't aware that the fields were hidden, the validations would fail upon submission.

…n the parent component first (where the validations are made) and set to the child component.
@Robbware Robbware added the bug a bug that prevents the application to funcation as it should label Oct 4, 2023
@Robbware Robbware self-assigned this Oct 4, 2023
@@ -47,6 +47,8 @@ namespace COMET.Web.Common.Tests.Components.BookEditor

using NUnit.Framework;

using RichardSzalay.MockHttp;
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this dependency comming from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is used for MockHttpMessageHandler (also on other fixtures in the project). Either way, one of the tests I modified had this using but it wasn't in use so I've removed it.

COMET.Web.Common/wwwroot/BookInputConfiguration.json Outdated Show resolved Hide resolved
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

84.5% 84.5% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@Robbware Robbware merged commit a6d1a22 into development Oct 5, 2023
@Robbware Robbware deleted the Fix/BookInputConfigurationFailedValidations branch October 5, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug a bug that prevents the application to funcation as it should
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants