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

perf: Add 'labels' column to AssetPermission and Domain tables #4521

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Dec 18, 2024

perf: Add 'labels' column to AssetPermission and Domain tables

@fit2bot fit2bot requested a review from a team December 18, 2024 02:53
@@ -16,7 +16,7 @@ export default {
url: '/api/v1/assets/domains/',
columnsExclude: ['gateway'],
columnsExtra: ['gateways'],
columns: ['name', 'assets_amount', 'gateways', 'comment', 'actions'],
columns: ['name', 'assets_amount', 'gateways', 'labels', 'comment', 'actions'],
columnsShow: {
min: ['name', 'actions'],
default: ['name', 'assets_amount', 'gateways', 'comment', 'actions']
Copy link
Member

Choose a reason for hiding this comment

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

The difference between your provided code snippet (assuming import statements) is:

  1. In the original snippet:
    columnsExtra: ['gateways']

  2. The new version:
    columnsExtra: ['gateways']
    and also changed "assets_amount" to "assets", corrected spaces, moved it into the same list with other non-gateway columns and added 'labels', thus adjusting the column grouping.

  3. No change was made in terms of showing extra fields when there are less than 5 rows or more than 5 rows based on current conditions.

No major changes were found that suggest an issue or need for improvement. This could be just part of how data visualization frameworks like React DataGrid handle different use cases and requirements! Please let me know if you want additional information about this particular code variation or a related concept!

@@ -50,7 +50,7 @@ export default {
columnsExtra: ['action'],
columns: [
'name', 'users_amount', 'user_groups_amount', 'assets_amount', 'nodes_amount',
'accounts', 'is_valid', 'is_expired', 'from_ticket', 'is_active', 'actions'
'accounts', 'labels', 'is_valid', 'is_expired', 'from_ticket', 'is_active', 'actions'
],
columnsShow: {
min: ['name', 'actions'],
Copy link
Member

Choose a reason for hiding this comment

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

To analyze code differences, please share the actual parts of the given code to compare.

@w940853815 w940853815 merged commit a9ba931 into dev Dec 18, 2024
5 of 6 checks passed
@w940853815 w940853815 deleted the pr@dev@perf_add_labels branch December 18, 2024 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants