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: subgrid binding asserting against JS values #51

Conversation

ewingjm
Copy link
Member

@ewingjm ewingjm commented Dec 8, 2020

Purpose

Fixes #10. Then the subgrid contains a record with '(.*)' in the '(.*)' field was asserting against values retrieved from JavaScript rather than from the UI. This resulted in dates being compared with something like Tue Mar 24 2015 17:00:00 GMT-0700 (Pacific Daylight Time).

Approach

Now compares against values as shown in the UI.

TODOs

  • Automated test coverage for new code
  • Documentation updated (if required)
  • Build and tests successful

@ewingjm ewingjm added the bug Something isn't working label Dec 8, 2020
@ewingjm
Copy link
Member Author

ewingjm commented Dec 8, 2020

We may need to bypass code coverage on this one, I couldn't find a sub-grid that wasn't using card views or a custom control to test against in the out-of-the-box apps.

@sonarcloud
Copy link

sonarcloud bot commented Dec 8, 2020

Kudos, SonarCloud Quality Gate passed!

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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@tdashworth
Copy link
Contributor

We may need to bypass code coverage on this one, I couldn't find a sub-grid that wasn't using card views or a custom control to test against in the out-of-the-box apps.

Have you been able to test this at least on a project?

@ewingjm
Copy link
Member Author

ewingjm commented Dec 8, 2020

Have you been able to test this at least on a project?

Yep, this change fixed a number of failing tests - tested by adding a local reference.

@ewingjm ewingjm merged commit 5272ee1 into master Dec 9, 2020
@ewingjm ewingjm deleted the bugfix/then-the-subgrid-contains-a-record-with-x-in-the-y-field branch December 9, 2020 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Then the subgrid contains a record with <> in the <> field - validating against JavaScript values
2 participants