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

DSP-974 / DSP-1043 Determine from ontology if a property is read-only #233

Merged
merged 10 commits into from
Nov 24, 2020

Conversation

tobiasschweizer
Copy link
Contributor

@tobiasschweizer tobiasschweizer commented Nov 19, 2020

resolves DSP-974 and DSP-1043

ValueService.isReadOnly has an additional third argument now: propertyDef: ResourcePropertyDefinition.
I added the flag "breaking" because this method could be used directly by the app.

@tobiasschweizer tobiasschweizer self-assigned this Nov 19, 2020
@tobiasschweizer tobiasschweizer added breaking Breaking change enhancement New feature or request labels Nov 19, 2020
addButtons = propertyViewComponentDe.queryAll(By.css('button.create'));
expect(addButtons.length).toEqual(20);
expect(addButtons.length).toEqual(18);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a better way to know the number of expected buttons than to write a hardcoded number? Maybe we can use the propArray to check how many properties are not read-only and use that? This way if the test data changes, we don't have to keep manually updating the number. Idk how it will work with cardinalities though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added some explicit tests in 186d024

@tobiasschweizer tobiasschweizer merged commit c524912 into main Nov 24, 2020
@tobiasschweizer tobiasschweizer deleted the wip/dsp-974-readonly-props branch November 24, 2020 08:30
@kilchenmann kilchenmann changed the title Determine from ontology if a property is read-only DSP-974 / DSP-1043 Determine from ontology if a property is read-only Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants