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(#6942): Toggling FlexibleLayout toolbar options reflects immediately in the view #6943

Merged
merged 8 commits into from
Aug 16, 2023

Conversation

ozyx
Copy link
Contributor

@ozyx ozyx commented Aug 16, 2023

Closes #6942

Describe your changes:

Fixes reactivity issues with toggling toolbar options tied to domainObject configuration in the Flexible Layout (Row/Column Layout and Frame Visibility).

Also adds a regression test and cleans up the Flexible Layout suite a tiny bit.

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)

@ozyx ozyx added this to the Target:3.0.1 milestone Aug 16, 2023
@deploysentinel
Copy link

deploysentinel bot commented Aug 16, 2023

Current Playwright Test Results Summary

✅ 14 Passing - ⚠️ 1 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 05:52:00pm UTC)

Run Details

Running Workflow e2e-couchdb on Github Actions

Commit: 3162a62

Started: 08/16/2023 05:49:39pm UTC

⚠️ Flakes

📄   functional/couchdb.e2e.spec.js • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
CouchDB Status Indicator with mocked responses @couchdb Shows unknown if it receives an unexpected response code
Retry 1Initial Attempt
0% (0) 0 / 51 runs
failed over last 7 days
5.88% (3) 3 / 51 runs
flaked over last 7 days

View Detailed Build Results


Current Playwright Test Results Summary

✅ 134 Passing - ⚠️ 4 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 05:52:00pm UTC)

Run Details

Running Job e2e-stable on CircleCI

Commit: 3162a62

Started: 08/16/2023 05:37:39pm UTC

⚠️ Flakes

📄   functional/plugins/notebook/restrictedNotebook.e2e.spec.js • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Restricted Notebook with a page locked and with an embed @addinit Allows embeds to be deleted if page unlocked @addinit
Retry 1Initial Attempt
0% (0) 0 / 127 runs
failed over last 7 days
47.24% (60) 60 / 127 runs
flaked over last 7 days
Restricted Notebook with a page locked and with an embed @addinit Disallows embeds to be deleted if page locked @addinit
Retry 1Initial Attempt
0% (0) 0 / 126 runs
failed over last 7 days
45.24% (57) 57 / 126 runs
flaked over last 7 days

📄   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 1Initial Attempt
10.32% (13) 13 / 126 runs
failed over last 7 days
26.19% (33) 33 / 126 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 / 158 runs
failed over last 7 days
57.59% (91) 91 / 158 runs
flaked over last 7 days

View Detailed Build Results


@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #6943 (3162a62) into master (82b1760) will increase coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #6943      +/-   ##
==========================================
+ Coverage   48.33%   48.36%   +0.02%     
==========================================
  Files         643      643              
  Lines       25629    25631       +2     
  Branches     2496     2496              
==========================================
+ Hits        12389    12396       +7     
+ Misses      12767    12759       -8     
- Partials      473      476       +3     
Flag Coverage Δ *Carryforward flag
e2e-full 42.03% <ø> (ø) Carriedforward from 82b1760
e2e-stable 57.12% <ø> (+0.09%) ⬆️
unit 38.78% <0.00%> (-0.02%) ⬇️

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

Files Changed Coverage Δ
...plugins/displayLayout/components/SubobjectView.vue 9.52% <0.00%> (ø)
...ugins/flexibleLayout/components/flexibleLayout.vue 8.21% <0.00%> (-0.12%) ⬇️
...ugins/flexibleLayout/flexibleLayoutViewProvider.js 95.45% <ø> (ø)

... and 7 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 82b1760...3162a62. Read the comment docs.

Copy link
Contributor

@scottbell scottbell left a comment

Choose a reason for hiding this comment

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

Has some failing tests that need to be addresses, but otherwise works great!
Before:

before.mov

After:

after.mov

@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
@ozyx ozyx enabled auto-merge (squash) August 16, 2023 17:45
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Aug 16, 2023
@ozyx ozyx merged commit 6c92e31 into master Aug 16, 2023
@ozyx ozyx deleted the mct6942 branch August 16, 2023 17:52
ozyx added a commit that referenced this pull request Aug 16, 2023
…ns reflects immediately in the view

* fix: restore reactivity of config settings

- move initialization steps to `created()` hook

- remove unnecessary `:key` binds

- fix comments

* refactor: clean up

* refactor: clean up

* refactor: lint:fix

* test(e2e): add regression test and cleanup suite

* refactor: consistency is key!

* test(fix): fix unit tests, further cleanup
unlikelyzero pushed a commit that referenced this pull request Aug 16, 2023
…ns reflects immediately in the view (#6945)

* fix: restore reactivity of config settings

- move initialization steps to `created()` hook

- remove unnecessary `:key` binds

- fix comments

* refactor: clean up

* refactor: clean up

* refactor: lint:fix

* test(e2e): add regression test and cleanup suite

* refactor: consistency is key!

* test(fix): fix unit tests, further cleanup
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.

[Flexible Layout]: Layout orientation and frame visibility don't update until save and renav
3 participants