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

Vulcan 134/configurable attributes review #687

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

nielsdejong
Copy link
Collaborator

@nielsdejong nielsdejong commented Nov 13, 2023

Replacement for #645


Ordering and Hide features of graph attributes in detail view

  • When user clicks on one node/edge. In the detail popup, Our users wanted few attributes to display in defined order and other attributes which are there will be displayed in ascending order.

Screenshot 2023-08-30 at 2 25 04 PM

{
         "id": "6d00f7c7-4b3d-4b6d-9224-2b61fb0c129a",
         "title": "Movie",
         "query": "MATCH (n)-[e]->(m) RETURN n,e,m LIMIT 20\n\n\n",
         ....
         "settings": {
           "customTablePropertiesOfModal": [
               {
                 "type": "node",
                 "entityType": "Movie",
                 "ordering": ["title", "tagline"],
                 "hide": ["released"]
               }
             ]
         },
         ......
}
  • Note: There is no UI to configure this for now. Possible only through JSON upload. What we have done is we introduced one property in settings "customTablePropertiesOfModal". Please refer above.
  • The results will look like below image.

Screenshot 2023-08-30 at 2 40 40 PM

NOTICE:

The program was tested solely for our own use cases, which might differ from yours.
Author Info: Monish [email protected] on behalf of Mercedes-Benz Research and Development India
https://github.com/mercedes-benz/mercedes-benz-foss/blob/master/PROVIDER_INFORMATION.md

Copy link

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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 30 lines in your changes are missing coverage. Please review.

Comparison is base (52426c8) 39.04% compared to head (5095a80) 39.04%.
Report is 22 commits behind head on develop.

Files Patch % Lines
...art/graph/component/GraphEntityInspectionTable.tsx 0.00% 18 Missing ⚠️
src/chart/bar/util.ts 0.00% 6 Missing ⚠️
src/application/logging/LoggingThunk.ts 0.00% 3 Missing ⚠️
...c/chart/graph/component/GraphChartInspectModal.tsx 75.00% 2 Missing ⚠️
src/chart/bar/BarChart.tsx 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #687      +/-   ##
===========================================
- Coverage    39.04%   39.04%   -0.01%     
===========================================
  Files          208      208              
  Lines         8718     8736      +18     
  Branches      2597     2604       +7     
===========================================
+ Hits          3404     3411       +7     
- Misses        5252     5264      +12     
+ Partials        62       61       -1     

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

@alfredorubin96
Copy link
Collaborator

This feature needs documentation about the dictionary definition in the config.

Copy link

sonarqubecloud bot commented Jan 8, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@nielsdejong nielsdejong added 2.4.3 and removed 2.4.2 labels Jan 8, 2024
@nielsdejong
Copy link
Collaborator Author

I think this is a really useful feature, but I think we should wait until there is a UI available to edit dictionary settings.

We already have a component for editing simple dictionaries (GraphChartEditModal.tsx) and can potentially re-use it. Once we have the dictionary-edit modal, we open it whenever someone selects a dictionary property from a report's advanced settings. Then, after adding docs we can merge this feature as well.

@alfredorubin96
Copy link
Collaborator

alfredorubin96 commented Feb 21, 2024

I tried it, some notes:

  1. writing on the hide attribute cell, for the way it formats the text, it's prohibitive;
  2. It doesn't look like it's working (tried both ordering and hiding props)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants