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

Recent objects do not update when object names are changed #6927

Merged

Conversation

scottbell
Copy link
Contributor

@scottbell scottbell commented Aug 14, 2023

Closes #6818

Describe your changes:

  • Add name to the tree item key so changes to domain object's name are reactive
  • Add name listeners to recent object items so changes to domain object's name are reactive

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?
  • Tests included and/or updated with changes?
  • Command line build passes?
  • Has this been smoke tested?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?
  • 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)

@scottbell scottbell linked an issue Aug 14, 2023 that may be closed by this pull request
7 tasks
@scottbell scottbell requested a review from ozyx August 14, 2023 13:19
@scottbell
Copy link
Contributor Author

scottbell commented Aug 14, 2023

@ozyx if this looks good from a code perspective, I'll start adding some e2e tests:

Screen.Recording.2023-08-14.at.3.21.51.PM.mov

Note I haven't addressed the Inspector or BrowseBar issues, which may need a similar listener pattern as RecentObjectsList?

@deploysentinel
Copy link

deploysentinel bot commented Aug 14, 2023

Current Playwright Test Results Summary

✅ 14 Passing

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 08/16/2023 09:37:54pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 8ae06f9

Started: 08/16/2023 09:36:00pm UTC

View Detailed Build Results


Current Playwright Test Results Summary

✅ 136 Passing - ⚠️ 2 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 08/16/2023 09:37:54pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 8ae06f9

Started: 08/16/2023 09:22:33pm UTC

⚠️ Flakes

📄   functional/plugins/plot/tagging.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Plot Tagging Tags work with Overlay Plots
Retry 2Retry 1Initial Attempt
10.26% (16) 16 / 156 runs
failed over last 7 days
26.28% (41) 41 / 156 runs
flaked over last 7 days

📄   functional/planning/timelist.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Time List Create a Time List, add a single Plan to it and verify all the activities are displayed with no milliseconds
Retry 1Initial Attempt
0% (0) 0 / 188 runs
failed over last 7 days
55.85% (105) 105 / 188 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Aug 14, 2023

Codecov Report

Merging #6927 (8ae06f9) into master (2d92223) will increase coverage by 0.01%.
The diff coverage is 40.00%.

@@            Coverage Diff             @@
##           master    #6927      +/-   ##
==========================================
+ Coverage   48.26%   48.28%   +0.01%     
==========================================
  Files         643      643              
  Lines       25631    25700      +69     
  Branches     2496     2509      +13     
==========================================
+ Hits        12372    12409      +37     
- Misses      12783    12811      +28     
- Partials      476      480       +4     
Flag Coverage Δ *Carryforward flag
e2e-full 42.01% <ø> (-0.02%) ⬇️ Carriedforward from 2d92223
e2e-stable 57.14% <100.00%> (+0.18%) ⬆️
unit 38.71% <24.00%> (-0.04%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files Changed Coverage Δ
src/api/forms/components/FormRow.vue 73.52% <ø> (ø)
...c/plugins/inspectorViews/properties/Properties.vue 76.05% <ø> (-4.90%) ⬇️
src/ui/components/ObjectPath.vue 0.00% <0.00%> (ø)
src/ui/layout/RecentObjectsList.vue 20.73% <0.00%> (-3.08%) ⬇️
src/ui/layout/mct-tree.vue 21.39% <ø> (ø)
src/plugins/inspectorViews/properties/Location.vue 41.93% <50.00%> (-27.30%) ⬇️
src/ui/inspector/ObjectName.vue 40.38% <50.00%> (-4.06%) ⬇️
src/api/forms/components/controls/TextField.vue 100.00% <100.00%> (ø)
src/ui/router/Browse.js 89.18% <100.00%> (+0.14%) ⬆️

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 15, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 15, 2023
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 15, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 15, 2023
@scottbell scottbell linked an issue Aug 15, 2023 that may be closed by this pull request
7 tasks
@scottbell scottbell marked this pull request as ready for review August 15, 2023 12:51
e2e/appActions.js Outdated Show resolved Hide resolved
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

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

Really great work here. Just have one question before approval.

src/ui/layout/RecentObjectsList.vue Show resolved Hide resolved
@scottbell scottbell added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
@scottbell scottbell requested a review from ozyx August 16, 2023 20:56
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
Copy link
Contributor

@ozyx ozyx left a comment

Choose a reason for hiding this comment

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

LGTM!

@ozyx ozyx enabled auto-merge (squash) August 16, 2023 21:14
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
@ozyx ozyx added this to the Target:3.0.1 milestone Aug 16, 2023
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
@ozyx ozyx merged commit 99a3e3f into master Aug 16, 2023
9 checks passed
@ozyx ozyx deleted the 6818-recent-objects-do-not-update-when-object-names-are-changed branch August 16, 2023 21:38
scottbell added a commit that referenced this pull request Aug 17, 2023
* fix tree name issue

* add name to key, and name observers to recent objects

* no need to change key

* make more of app reactive to name changes

* fix browse bar and document title

* listen in properties for name changes

* add tests for renaming

* yeah spelling linter

* add semantic tags to forms and fixup tests

* change purpose

* actually delete the listener

* ensuring deletion

---------

Co-authored-by: Jesse Mazzella <[email protected]>
ozyx added a commit that referenced this pull request Aug 17, 2023
…e changed (#6949)

Recent objects do not update when object names are changed (#6927)

* fix tree name issue

* add name to key, and name observers to recent objects

* no need to change key

* make more of app reactive to name changes

* fix browse bar and document title

* listen in properties for name changes

* add tests for renaming

* yeah spelling linter

* add semantic tags to forms and fixup tests

* change purpose

* actually delete the listener

* ensuring deletion

---------

Co-authored-by: Jesse Mazzella <[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.

Recent Objects do not update when object names are changed Object rename is unreliable
3 participants