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

STSMACOM-748: Show the username in the 'last updated' accordion in the Note editing pane. #1412

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

Dmytro-Melnyshyn
Copy link
Contributor

Purpose

Show the username in the last updated accordion in the Note editing pane.

Issues

STSMACOM-748

Screenshots

image

Copy link

github-actions bot commented Nov 7, 2023

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit c1a1499. ± Comparison against base commit a7451e9.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

BigTest Unit Test Statistics

    1 files  ±0      1 suites  ±0   13s ⏱️ -1s
443 tests ±0  407 ✔️ ±0  36 💤 ±0  0 ±0 
445 runs  ±0  409 ✔️ ±0  36 💤 ±0  0 ±0 

Results for commit c1a1499. ± Comparison against base commit a7451e9.

♻️ This comment has been updated with latest results.

} = responseMetadata;

const lastUpdatedBy = createdByUserId === updatedByUserId
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can just use updatedByUsername in both cases.
If ids are equal - we're passing createdBy, which is the same as updatedByUsername
If they are not - we're passing updatedByUsername

So we can just remove the conditional

Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@Dmytro-Melnyshyn Dmytro-Melnyshyn merged commit 4c7b6a5 into master Nov 7, 2023
5 checks passed
@Dmytro-Melnyshyn Dmytro-Melnyshyn deleted the STSMACOM-748 branch November 7, 2023 13:51
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