Skip to content

Turn on no-getstate eslint rule and apply fixes#5239

Merged
JamesBurnside merged 16 commits intomainfrom
jaburnsi/apply-no-getstate-eslint-rules
Oct 4, 2024
Merged

Turn on no-getstate eslint rule and apply fixes#5239
JamesBurnside merged 16 commits intomainfrom
jaburnsi/apply-no-getstate-eslint-rules

Conversation

@JamesBurnside
Copy link
Copy Markdown
Member

@JamesBurnside JamesBurnside commented Oct 3, 2024

What

Turn on no-getstate lint rule and apply fixes

Why

We need to be using useSelector anywhere where the state can change dynamically. This isn't strictly necessary in some cases but its too hard to know when adapter.getState can and can't be used so we are lighting up a lint rule to enforce it always

How Tested

Quick some test

image

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

CallWithChat bundle size is not changed.

  • Current size: 11750193
  • Base size: 11750193
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

Chat bundle size is decreased✅.

  • Current size: 1756460
  • Base size: 1756581
  • Diff size: -121

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

Calling bundle size is not changed.

  • Current size: 11750180
  • Base size: 11750180
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 53928 / 88220
61.12%
53928 / 88220
61.12%
1085 / 2475
43.83%
3198 / 5275
60.62%
Current 54038 / 88319
61.18%
54038 / 88319
61.18%
1096 / 2485
44.1%
3199 / 5271
60.69%
Diff 110 / 99
0.06%
110 / 99
0.06%
11 / 10
0.27%
1 / -4
0.07%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 26686 / 42905
62.19%
26686 / 42905
62.19%
729 / 1329
54.85%
2118 / 3385
62.57%
Current 26680 / 42905
62.18%
26680 / 42905
62.18%
729 / 1329
54.85%
2126 / 3393
62.65%
Diff -6 / 0
-0.01%
-6 / 0
-0.01%
0 / 0
0%
8 / 8
0.08%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

Failed to pass the UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 3, 2024

@JamesBurnside JamesBurnside marked this pull request as ready for review October 3, 2024 21:33
@JamesBurnside JamesBurnside requested review from a team as code owners October 3, 2024 21:33
@JamesBurnside JamesBurnside requested review from alkwa-msft, carocao-msft and dmceachernmsft and removed request for a team October 3, 2024 21:33
Comment thread packages/react-composites/src/composites/ChatComposite/ChatScreen.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

Comment thread packages/react-composites/src/composites/ChatComposite/ChatScreen.tsx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

Failed to pass the Static HTML UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

…een.tsx

Co-authored-by: vhuseinova-msft <98852890+vhuseinova-msft@users.noreply.github.com>
Signed-off-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

Failed to pass the Static HTML UI Test. If this PR is for UI change and the error is snapshot mismatch, please add "update_snapshots" label to the PR for updating the snapshot.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

@mgamis-msft
Copy link
Copy Markdown
Contributor

Huge thanks for doing update!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

Base automatically changed from jaburnsi/lint-rule to main October 4, 2024 21:13
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 4, 2024

@JamesBurnside JamesBurnside merged commit e4250e4 into main Oct 4, 2024
@JamesBurnside JamesBurnside deleted the jaburnsi/apply-no-getstate-eslint-rules branch October 4, 2024 22:11
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.

5 participants