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

Correctly use creatable attribute and persistability when working wit… #4936

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

shefalijoshi
Copy link
Contributor

@shefalijoshi shefalijoshi commented Mar 14, 2022

…h domainObjects (#4898)

  • making move action location check persistability

  • adding persistence check instead of creatability for styles

  • added check for link action to make sure parent is persistable

  • debug

  • adding parent to link action and move action form location controls so they can be used in the form

  • adding parent persistability check for duplicate

  • updating multilple actions appliesTo methods to check for persistability

  • updated the tree to not require an initial selection if being used in a form

  • remove noneditable folder plugin

  • added persistence check for the parent, in the create wizard

  • minor name change

  • removing noneditabl folder from default plugins as well

  • checking the correct parent for persistability in create wizard

  • importing file-saver correctly

  • updated tests for import as json

  • changes addressing PR review: using consts, removing comments, removing unneccessary code

Co-authored-by: Scott Bell [email protected]

Closes

Describe your changes:

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Unit tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue?

Reviewer Checklist

  • Changes appear to address issue?
  • Changes appear not to be breaking changes?
  • Appropriate unit tests included?
  • Code style and in-line documentation are appropriate?
  • Commit messages meet standards?
  • Has associated issue been labelled unverified? (only applicable if this PR closes the issue)
  • Has associated issue been labelled bug? (only applicable if this PR is for a bug fix)

…h domainObjects (#4898)

* making move action location check persistability

* adding persistence check instead of creatability for styles

* added check for link action to make sure parent is persistable

* debug

* adding parent to link action and move action form location controls so they can be used in the form

* adding parent persistability check for duplicate

* updating multilple actions appliesTo methods to check for persistability

* updated the tree to not require an initial selection if being used in a form

* remove noneditable folder plugin

* added persistence check for the parent, in the create wizard

* minor name change

* removing noneditabl folder from default plugins as well

* checking the correct parent for persistability in create wizard

* importing file-saver correctly

* updated tests for import as json

* changes addressing PR review: using consts, removing comments, removing unneccessary code

Co-authored-by: Scott Bell <[email protected]>
@shefalijoshi shefalijoshi requested a review from jvigliotta March 14, 2022 20:26
@codecov
Copy link

codecov bot commented Mar 14, 2022

Codecov Report

Merging #4936 (e691a89) into release/2.0.1 (bcd6685) will decrease coverage by 0.01%.
The diff coverage is 56.25%.

Impacted file tree graph

@@                Coverage Diff                @@
##           release/2.0.1    #4936      +/-   ##
=================================================
- Coverage          50.51%   50.50%   -0.02%     
=================================================
  Files                498      497       -1     
  Lines              18395    18396       +1     
  Branches            1659     1657       -2     
=================================================
- Hits                9292     9290       -2     
- Misses              8685     8692       +7     
+ Partials             418      414       -4     
Impacted Files Coverage Δ
src/MCT.js 97.82% <ø> (-0.03%) ⬇️
src/plugins/formActions/CreateWizard.js 65.71% <0.00%> (-3.99%) ⬇️
src/plugins/plugins.js 100.00% <ø> (ø)
src/ui/layout/mct-tree.vue 12.34% <0.00%> (-0.04%) ⬇️
src/plugins/linkAction/LinkAction.js 25.00% <33.33%> (-5.00%) ⬇️
src/plugins/move/MoveAction.js 52.11% <50.00%> (-0.83%) ⬇️
src/plugins/duplicate/DuplicateAction.js 31.91% <70.00%> (+0.80%) ⬆️
...gins/condition/components/inspector/StylesView.vue 47.95% <100.00%> (+0.11%) ⬆️
...c/plugins/exportAsJSONAction/ExportAsJSONAction.js 92.42% <100.00%> (+0.11%) ⬆️
src/plugins/remove/RemoveAction.js 51.06% <100.00%> (+1.06%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcd6685...e691a89. Read the comment docs.

Copy link
Contributor

@jvigliotta jvigliotta left a comment

Choose a reason for hiding this comment

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

LGTM!

@jvigliotta jvigliotta merged commit d2923a6 into release/2.0.1 Mar 14, 2022
@jvigliotta jvigliotta deleted the master-2.0.1-rebase branch March 14, 2022 20:34
unlikelyzero added a commit that referenced this pull request Mar 23, 2022
* Correctly use creatable attribute and persistability when working with domainObjects (#4898) (#4936)

* making move action location check persistability

* adding persistence check instead of creatability for styles

* added check for link action to make sure parent is persistable

* debug

* adding parent to link action and move action form location controls so they can be used in the form

* adding parent persistability check for duplicate

* updating multilple actions appliesTo methods to check for persistability

* updated the tree to not require an initial selection if being used in a form

* remove noneditable folder plugin

* added persistence check for the parent, in the create wizard

* minor name change

* removing noneditabl folder from default plugins as well

* checking the correct parent for persistability in create wizard

* importing file-saver correctly

* updated tests for import as json

* changes addressing PR review: using consts, removing comments, removing unneccessary code

Co-authored-by: Scott Bell <[email protected]>

Co-authored-by: Jamie V <[email protected]>
Co-authored-by: Scott Bell <[email protected]>

* Fix display layout items getting cut off on the bottom (like plots) (#4903)

* Fix display layout items getting cut off on the bottom (like plots)
Also fix Vue warnings

* Add partial e2e test for this bug fix. WIP.

* Address review comments

Co-authored-by: John Hill <[email protected]>

* Link action fix (#4945)

* handling edge case for linking a root item

* added location to viper plans (couch search folder) set to ROOT, added a check to remove action for alias (so you can remove linked nonpersistable items)

* added check for no parent in remove action (which means it is a root item)

* updating test

* Update time conductor inputs realtime (#4877)

* Update time conductor inputs realtime

* Update moveObjects.e2e.spec.js

* Update importAsJson.e2e.spec.js

* Update default.spec.js

Co-authored-by: Jamie V <[email protected]>
Co-authored-by: Scott Bell <[email protected]>
Co-authored-by: John Hill <[email protected]>
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