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

Replace get-errors-for helper #8203

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

stopfstedt
Copy link
Member

@stopfstedt stopfstedt commented Oct 30, 2024

refs ilios/ilios#5371

i couldn't figure out how to salvage this Resource-based helper, so I'm attempting to side-step the issue by shifting its functionality into the ValidationError component.

this changes the interface of the ValidationError component.

from:

<ValidationError @errors={{get-errors-for this.foo}} />

to:

<ValidationError @validatable={{this}} @property="foo" />

@stopfstedt stopfstedt marked this pull request as ready for review October 30, 2024 20:32
@stopfstedt stopfstedt marked this pull request as draft October 30, 2024 20:42
@stopfstedt stopfstedt marked this pull request as ready for review October 30, 2024 21:14
Copy link
Contributor

@michaelchadwick michaelchadwick left a comment

Choose a reason for hiding this comment

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

Approval: granted

@michaelchadwick michaelchadwick added the run ui tests Run the expensive UI tests label Oct 30, 2024
this will allow us to get rid of the get-errors-for helper.
this ditches the "it responds to changes" testcase, since this would now
require rigging up a test fixture that's responsive, like a dummy
component.
way too much effort - we're already testing validation error state
changes in integration tests that utilize the ValidationError component.
@dartajax dartajax merged commit ac7f049 into ilios:master Nov 4, 2024
36 checks passed
@stopfstedt stopfstedt deleted the replace-get-error-for branch November 4, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run ui tests Run the expensive UI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants