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

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

Closed
christine-gong opened this issue Jul 17, 2020 · 13 comments · Fixed by #2063 · May be fixed by #891
Closed

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

christine-gong opened this issue Jul 17, 2020 · 13 comments · Fixed by #2063 · May be fixed by #891

Comments

@christine-gong
Copy link

Requirement - what kind of business use case are you trying to solve?

can we change the default choice of layout selection to be one node per resource in this section:
Screen Shot 2020-07-16 at 3 32 48 PM
Current default is show paths to focal node

@yurishkuro
Copy link
Member

I don't have a strong opinion on the specific default itself, but I think it would be useful to have it configurable per installation in the ui config, so that the change is backwards compatible in case some people really like the current default.

@christine-gong
Copy link
Author

@yurishkuro yeah it would be nice to be configurable as part of ui deployment.

@Leena1666
Copy link

can I work on this issue?

@albertteoh
Copy link
Contributor

@Leena1666 it's yours!

@PawBud
Copy link

PawBud commented Feb 23, 2022

I am aware that this issue has already been assigned, but I did it nevertheless given that it was assigned almost 6 months ago. Do let me know if I should close my PR.

@yurishkuro yurishkuro changed the title Question: change the layout selection for deep dependency graph view (view=ddg) [Feature] change the default layout selection for deep dependency graph view (view=ddg) Mar 22, 2023
@Wise-Wizard
Copy link
Contributor

@yurishkuro, Is this issue still open? I would like to work on it!

@yurishkuro
Copy link
Member

It's open

@Wise-Wizard
Copy link
Contributor

I had a question regarding this issue, the default option should not be set to One Node per resource, but rather the default option should be configurable as per the User right?

@yurishkuro
Copy link
Member

It should be configurable by user, but in the absence of such configuration it should behave the same as today.

@Wise-Wizard
Copy link
Contributor

Understood! Thanks for clarifying!

@Wise-Wizard
Copy link
Contributor

Hi, I thought configurable by user meant that the end user can set any of the option as defualt and was thinking of adding set as default as an additional option and had made the required changes for that, and was about to raise a PR but then I took a look at the below Thread: #891 and found out there are some entirely different expectations and I have misunderstood them something to do with the below picture
Screenshot 2023-12-15 135129
Can you please clarify the requirements again as to what is expected?

@yurishkuro
Copy link
Member

configurable by user meant that the end user can set any of the option as default

I think there's even a simpler solution - store last used option in local storage and apply it on new screens. Changing default via configuration would be next level, very high friction for small benefit.

@Wise-Wizard
Copy link
Contributor

Got it thanks a lot! Will implement that itself

yurishkuro added a commit that referenced this issue Dec 20, 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](https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md).
- ✓ 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](https://github.com/jaegertracing/jaeger-ui/assets/103821431/155776d6-a39f-4808-a0da-8eb3c34a6c56)

---------

Signed-off-by: Wise-Wizard <saransh.shankar@gmail.com>
Signed-off-by: Saransh Shankar <103821431+Wise-Wizard@users.noreply.github.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Co-authored-by: Yuri Shkuro <yurishkuro@users.noreply.github.com>
Co-authored-by: Yuri Shkuro <github@ysh.us>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment