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

Updated Default Configuration for Deep Dependency Graph #2063

Conversation

Wise-Wizard
Copy link
Contributor

@Wise-Wizard Wise-Wizard commented Dec 19, 2023

Problem

Resolves #600, which reported a concern related to [Feature] change the default layout selection for deep dependency graph view (view=ddg)

Changes

In order to resolve the mentioned issue, the following changes have been implemented:

  • Implemented logic in the componentDidMount lifecycle method to check local storage for a previously selected density, setting it as the default if found.
  • Modified the updateDensity method to save the selected density in local storage, ensuring persistence across sessions.
  • Enhanced user experience by retaining and applying the last selected density even after page reloads.

Testing

The changes have been thoroughly tested to ensure their correctness and compatibility. The testing process included:

  • Modifying the index.test.js, to also consider a default configuration from local storage, rather than only considering a fixed configuration for testing.

Checklist

To comply with the project's contribution guidelines, the following checklist items have been addressed:

  • ✓ I have carefully read and followed the contributing guidelines.
  • ✓ I have signed all commits.
  • ✓ Unit tests for the new functionality have been added.
  • ✓ Linting and testing steps have been successfully executed:
    • for jaeger: make lint test
    • for jaeger-ui: yarn lint and yarn test
      Screenshot 2023-12-19 224644

Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
@Wise-Wizard Wise-Wizard requested a review from a team as a code owner December 19, 2023 17:37
@Wise-Wizard Wise-Wizard requested review from yurishkuro and removed request for a team December 19, 2023 17:37
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
…utSettings/index.tsx

Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Saransh Shankar <103821431+Wise-Wizard@users.noreply.github.com>
Wise-Wizard and others added 2 commits December 20, 2023 22:17
…utSettings/index.tsx

Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Signed-off-by: Saransh Shankar <103821431+Wise-Wizard@users.noreply.github.com>
Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
@Wise-Wizard
Copy link
Contributor Author

Screenshot 2023-12-20 223409
Please check the latest commit, I have made the necessary changes to the Tests.

Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
@yurishkuro yurishkuro added the changelog:new-feature Change that should be called out as new feature in CHANGELOG label Dec 20, 2023
yurishkuro
yurishkuro previously approved these changes Dec 20, 2023
Copy link
Member

@yurishkuro yurishkuro left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

Copy link

codecov bot commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2947a10) 96.54% compared to head (11fe261) 96.54%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2063   +/-   ##
=======================================
  Coverage   96.54%   96.54%           
=======================================
  Files         255      255           
  Lines        7616     7622    +6     
  Branches     1984     1985    +1     
=======================================
+ Hits         7353     7359    +6     
  Misses        263      263           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Wise-Wizard
Copy link
Contributor Author

All the checks except Lint has passed, Is there something that's remaining to be done from my end, or is it common and you shall kindly take a look and merge it manually?

@yurishkuro
Copy link
Member

error message:

*** PLEASE RUN yarn prettier AND RESUBMIT ***

@Wise-Wizard
Copy link
Contributor Author

Wise-Wizard commented Dec 20, 2023

Running yarn prettier, didn't resolve it. Please let me know of the steps I have to take to resolve this. It will be of great help. Does it have to do something with yarn version, because I am using v1.22.4 to locally setup my jaeger-ui repo.

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro
Copy link
Member

I ran yarn prettier and it applied the changes:

$ gst
	modified:   packages/jaeger-ui/src/components/DeepDependencies/Header/LayoutSettings/index.tsx

I just pushed them.

@yurishkuro yurishkuro enabled auto-merge (squash) December 20, 2023 19:29
@yurishkuro yurishkuro enabled auto-merge (squash) December 20, 2023 19:30
@Wise-Wizard
Copy link
Contributor Author

Yes, even I did the same thing ran yarn prettier but it didn't seem to work for me locally :(

@yurishkuro yurishkuro merged commit 3cc0e88 into jaegertracing:main Dec 20, 2023
10 checks passed
@Wise-Wizard
Copy link
Contributor Author

Thanks a lot for your help, this PR really helped me grow and learn. Appreciate it. Can you please suggest some issues you would like me to take a look at next?

@yurishkuro
Copy link
Member

I don't have particular suggestions, look for any help-wanted tickets that sound interesting to you.

@Wise-Wizard
Copy link
Contributor Author

Sure, will take up the next one I find interesting:)

@Wise-Wizard Wise-Wizard deleted the default-configuration/deep-dependency branch December 25, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:new-feature Change that should be called out as new feature in CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] change the default layout selection for deep dependency graph view (view=ddg)
2 participants