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

Changes to allow editable dataset name #10608

Merged

Conversation

jayasimhankv
Copy link
Contributor

@jayasimhankv jayasimhankv commented May 28, 2024

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

Problem statement:

We have seen the need for business users to be able to maintain an editable dataset name (aka “business name”), which is separate from the default dataset properties’ name. A previous PR was submitted back in late 2022 which also attempted at adding both editable name for the dataset as well as editable label for schema fields. [Original PR: https://github.com//pull/6171]

This PR is only confined to being able to add an editable name to a dataset. Please review and let me know if there are any questions/changes.

High level changes:

Model:

  • Include name field in EditableDatasetProperties (currently has only description)

UI/app changes:

  • Change entityHeader.tsx to allow editing dataset’s name based on a privilege check. This provides the ability to edit the name in the header and call the mutation to save it.
  • Change datasetEntity.tsx’s displayName property to give preference to editable properties’ name field if one exists.

UI/graphql changes:

  • Include name field in editableProperties on various fragments, so it can be displayed in the UI.

Resolver changes:

  • Allow name to be updated for dataset entity.
  • Add a new method updateDatasetName that checks for the privilege and then updates the name field in editable dataset properties.
  • Mapper changes to get and set name field from and to editableDatasetProperties aspect.

Working Examples:
With the EditProperties privilege granted to the user, the edit icon is shown in entity header, allowing the user to update it.
image

image

With the editable properties’ name updated in the entity’s aspect, the updated editable name (aka “business name”) is displayed.
image

Search page shows an example of two datasets - one with the default dataset properties’ name and one with editable dataset properties’s name updated earlier:
image

Search example showing look up by editable properties’ name:
image

Search example showing look up by non-editable properties’ name:
image

Example of a user that does not possess the EditProperties privilege - the edit icon in dataset’s header is not provided:
image

Graphql mutation call for a user that has permissions to update the dataset name:
image

UI page shows updated name:
image

Entity json data - the dataset properties’ name is left intact and only the editable dataset properties’ name is updated as seen below:
image

Graphql mutation call returning unauthorized exception for a user that does NOT have permissions to update the dataset name:
image

Summary by CodeRabbit

  • New Features

    • Introduced the ability to edit dataset names, configurable through the editableDatasetNameEnabled flag.
  • Improvements

    • Enhanced dataset properties to support editable names.
    • Updated GraphQL queries and fragments to manage editable dataset names effectively.
  • API Updates

    • Added name field to DatasetEditableProperties in GraphQL schemas and API responses.
  • Configuration

    • Integrated editableDatasetNameEnabled into application configuration settings.

@github-actions github-actions bot added product PR or Issue related to the DataHub UI/UX devops PR or Issue related to DataHub backend & deployment community-contribution PR or Issue raised by member(s) of DataHub Community labels May 28, 2024
@jayasimhankv jayasimhankv changed the title Initial changes to allow editable dataset name Changes to allow editable dataset name May 28, 2024
Comment on lines 846 to 849
"RVW" : "Designates review fabrics",
"STG" : "Designates staging fabrics",
"TEST" : "Designates testing fabrics",
"UAT" : "Designates user acceptance testing fabrics",
"RVW" : "Designates review fabrics"
"UAT" : "Designates user acceptance testing fabrics"
Copy link
Contributor

Choose a reason for hiding this comment

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

do you know why these enum values were moved aroud?

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

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

Overall this makes a LOT of sense.

One request I'd have is to add this edit button BEHIND A FEATURE FLAG (can add via application.yaml > featureFlags) so that we can disable this by default, unless people want it enabled.

I think it's somewhat risky from a product pov to allow any dataset names to be editable by default (and perhaps confusing), but if an org wants to opt in this makes a lot a lot of sense.

Step to add a feature flag:

  1. Add application.yaml > featureFlags > editableDatasetNames flag
  2. Add to FeatureFlags.java
  3. Add to app.graphql AppConfig type in GraphQL the new editableDatasetName field
  4. Edit AppConfigResolver to map the featureFlag object from YAML to the GraphQL editableDatasetName field.
  5. Fetch new field inside of app.graphql on the datahub-web-react side
  6. Add it to DEFAULT_APP_CONFIG in appConfigContext.tsx
  7. Finally, inside the EntityHeader.tsx component, add useAppConfig to get the feature flags
  8. Show or hide the edit capability based on whether the flag is true

@jayasimhankv
Copy link
Contributor Author

Overall this makes a LOT of sense.

One request I'd have is to add this edit button BEHIND A FEATURE FLAG (can add via application.yaml > featureFlags) so that we can disable this by default, unless people want it enabled.

I think it's somewhat risky from a product pov to allow any dataset names to be editable by default (and perhaps confusing), but if an org wants to opt in this makes a lot a lot of sense.

Step to add a feature flag:

  1. Add application.yaml > featureFlags > editableDatasetNames flag
  2. Add to FeatureFlags.java
  3. Add to app.graphql AppConfig type in GraphQL the new editableDatasetName field
  4. Edit AppConfigResolver to map the featureFlag object from YAML to the GraphQL editableDatasetName field.
  5. Fetch new field inside of app.graphql on the datahub-web-react side
  6. Add it to DEFAULT_APP_CONFIG in appConfigContext.tsx
  7. Finally, inside the EntityHeader.tsx component, add useAppConfig to get the feature flags
  8. Show or hide the edit capability based on whether the flag is true

Thanks for the review and feedback. I will work on this and get back to you.

Copy link
Contributor

coderabbitai bot commented Jul 16, 2024

Walkthrough

The changes enhance Datahub by introducing the ability to edit dataset display names, supported by a feature flag for greater flexibility. Updates span the backend, frontend, and GraphQL schema, allowing for the configuration and retrieval of editable names, while maintaining user experience and permission checks effectively.

Changes

File(s) Change Summary
datahub-graphql-core/src/main/java/com/.../FeatureFlags.java Added editableDatasetNameEnabled flag.
datahub-graphql-core/src/main/java/com/.../AppConfigResolver.java Updated get method to set the editable dataset name flag.
datahub-graphql-core/src/main/resources/app.graphql Added editableDatasetNameEnabled field to FeatureFlagsConfig.
datahub-graphql-core/src/main/resources/entity.graphql Added name field to DatasetEditableProperties and DatasetEditablePropertiesUpdate.
datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx Introduced isNameEditable prop and updated name logic.
datahub-web-react/src/app/useAppConfig.ts Added useIsEditableDatasetNameEnabled function.
datahub-web-react/src/appConfigContext.tsx Updated DEFAULT_APP_CONFIG to include editableDatasetNameEnabled.
datahub-web-react/src/graphql/app.graphql Included editableDatasetNameEnabled in appConfig query.
datahub-web-react/src/graphql/fragments.graphql, datahub-web-react/src/graphql/search.graphql Added name field to editableProperties in various fragments.
metadata-models/src/main/pegasus/com/.../EditableDatasetProperties.pdl Added name field for editable dataset properties.
metadata-service/restli-api/src/main/snapshot/com.linkedin.entity.entities.snapshot.json, metadata-service/restli-api/src/main/snapshot/com.linkedin.platform.platform.snapshot.json Added name field for editable dataset display name.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Frontend
    participant Backend
    participant Database

    User->>Frontend: Request to edit dataset name
    Frontend->>Backend: API call to update dataset name
    Backend->>Backend: Check if editableDatasetNameEnabled flag is true
    Backend->>Backend: Validate user permissions
    Backend->>Database: Update dataset name
    Database-->>Backend: Acknowledge update
    Backend-->>Frontend: Respond with success
    Frontend-->>User: Display updated name
Loading

Poem

In the land of data, names take flight,
Editable fields bring joy and delight.
With features unlocked, we frolic and play,
Changing names freely in a new, bright way.
So hop along, let’s dance and sing,
For every dataset, new names we bring! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 1565fb0 and 71d2c14.

Files selected for processing (13)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/UpdateNameResolver.java (4 hunks)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataset/mappers/DatasetMapper.java (2 hunks)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataset/mappers/DatasetUpdateInputMapper.java (1 hunks)
  • datahub-graphql-core/src/main/resources/entity.graphql (2 hunks)
  • datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx (4 hunks)
  • datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx (1 hunks)
  • datahub-web-react/src/graphql/browse.graphql (1 hunks)
  • datahub-web-react/src/graphql/fragments.graphql (1 hunks)
  • datahub-web-react/src/graphql/preview.graphql (1 hunks)
  • datahub-web-react/src/graphql/search.graphql (1 hunks)
  • metadata-models/src/main/pegasus/com/linkedin/dataset/EditableDatasetProperties.pdl (1 hunks)
  • metadata-service/restli-api/src/main/snapshot/com.linkedin.entity.entities.snapshot.json (1 hunks)
  • metadata-service/restli-api/src/main/snapshot/com.linkedin.platform.platform.snapshot.json (1 hunks)
Additional comments not posted (14)
metadata-models/src/main/pegasus/com/linkedin/dataset/EditableDatasetProperties.pdl (1)

23-30: Field addition looks good; verify search integration.

The addition of the name field with @Searchable annotation is appropriate for the objectives of this PR.

Please ensure that the integration with the search functionality is tested, particularly that TEXT_PARTIAL behaves as expected.

Verification successful

Field addition looks good; verify search integration.

The addition of the name field with @Searchable annotation is consistent with other usages of TEXT_PARTIAL in the codebase and appears to be well-integrated with the search functionality.

  • EditableDatasetProperties.pdl line 23-30: The name field with TEXT_PARTIAL is appropriately added and matches existing patterns.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the integration of the new field with the search functionality.

# Test: Search for the new field in the search configuration files.
rg --type pdl -A 5 $'TEXT_PARTIAL'

Length of output: 61


Script:

#!/bin/bash
# Description: Verify the integration of the new field with the search functionality.

# Locate all .pdl files and search for the usage of TEXT_PARTIAL within them.
fd --extension pdl --exec rg 'TEXT_PARTIAL' {}

Length of output: 1177


Script:

#!/bin/bash
# Description: Verify the integration of the new field with the search functionality.

# Locate all .pdl files and search for the usage of TEXT_PARTIAL within them, including context lines for better understanding.
fd --extension pdl --exec rg -A 5 -B 5 'TEXT_PARTIAL' {}

Length of output: 6996

datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx (1)

74-75: Privilege check addition is appropriate.

The addition of the EntityType.Dataset case in the getCanEditName function is consistent with the PR's objectives.

Please verify that the privilege check (canEditProperties) is consistent across other parts of the application.

Verification successful

Privilege check is consistent across the application.

The canEditProperties privilege check is used consistently in various parts of the application, including UI components, mocks, GraphQL fragments, and authorization logic.

  • datahub-web-react/src/app/entity/shared/tabs/Properties/PropertiesTab.tsx
  • datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx
  • datahub-web-react/src/Mocks.tsx
  • datahub-web-react/src/graphql/fragments.graphql
  • datahub-graphql-core/src/main/resources/auth.graphql
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/structuredproperties/RemoveStructuredPropertiesResolver.java
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/structuredproperties/UpsertStructuredPropertiesResolver.java
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/authorization/AuthorizationUtils.java
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/UpdateNameResolver.java
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/entity/EntityPrivilegesResolver.java
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the consistency of the privilege check.

# Test: Search for other occurrences of `canEditProperties` in the codebase.
rg --type tsx -A 5 $'canEditProperties'

Length of output: 66


Script:

#!/bin/bash
# Description: Verify the consistency of the privilege check.

# Find all .tsx files and search for occurrences of `canEditProperties`
fd -e tsx -x rg 'canEditProperties' {}

Length of output: 184


Script:

#!/bin/bash
# Description: Verify the consistency of the privilege check.

# Search for occurrences of `canEditProperties` and include surrounding context
rg 'canEditProperties' -A 5 -B 5

Length of output: 12977

datahub-web-react/src/graphql/browse.graphql (1)

20-20: GraphQL query update is correct.

The addition of the name field to the editableProperties object in the getBrowseResults query aligns with the PR's objectives.

Please verify that the GraphQL schema has been updated accordingly and that there are no inconsistencies.

Verification successful

GraphQL schema update is consistent.

The name field is present in various GraphQL schema files, confirming that its addition to the editableProperties object in the getBrowseResults query aligns with the existing schema structure.

  • datahub-web-react/src/graphql/browse.graphql: The name field is present as expected.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the consistency of the GraphQL schema.

# Test: Search for the `name` field in the GraphQL schema files.
rg --type graphql -A 5 $'name'

Length of output: 61


Script:

#!/bin/bash
# Description: Verify the consistency of the GraphQL schema.

# Find all GraphQL schema files and search for the `name` field within them.
fd -e graphql -e gql | xargs rg 'name'

Length of output: 39313

datahub-web-react/src/graphql/preview.graphql (1)

12-12: GraphQL fragment update is correct.

The addition of the name field to the editableProperties object in the entityPreview fragment is consistent with the changes made in browse.graphql.

Please verify that the GraphQL schema has been updated accordingly and that there are no inconsistencies.

Verification successful

GraphQL schema update verified.

The name field addition to the editableProperties object in the entityPreview fragment is consistent with the changes in browse.graphql. The GraphQL schema has been updated accordingly, and no inconsistencies were found.

  • datahub-web-react/src/graphql/preview.graphql
  • datahub-web-react/src/graphql/browse.graphql
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/binbash
# Description: Verify the consistency of the GraphQL schema.

# Test: Search for the `name` field in the GraphQL schema files.
rg --type graphql -A 5 $'name'

Length of output: 61


Script:

#!/bin/bash
# Description: Verify the consistency of the GraphQL schema.

# Test: Search for the `name` field in the GraphQL schema files.
rg 'name' --glob '*.graphql' -A 5

Length of output: 182651

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataset/mappers/DatasetUpdateInputMapper.java (1)

114-120: Conditional property updates implemented correctly.

The changes to conditionally update the description and name of a dataset based on the input properties are implemented correctly. This ensures that only non-null values update the dataset properties, preventing unintended data loss or corruption.

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/types/dataset/mappers/DatasetMapper.java (1)

225-225: Proper handling of dataset names with prioritization of editable names.

The logic to prioritize the editable dataset name over the default name if it exists is implemented correctly. This aligns with the PR's goal to allow business users to maintain a separate "business name" for datasets.

Also applies to: 252-254

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/mutate/UpdateNameResolver.java (1)

244-273: Robust implementation of dataset name updating with proper authorization checks.

The new updateDatasetName method includes comprehensive authorization checks and handles potential exceptions gracefully. This ensures that only authorized users can update the dataset name, aligning with the PR's security requirements.

datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx (1)

278-278: Correct implementation of name prioritization in UI components.

The changes to prioritize displaying the editable dataset name in various UI components are implemented correctly. This ensures that the UI reflects the most relevant name for business users, aligning with the PR's objectives.

Also applies to: 306-306, 356-356

datahub-web-react/src/graphql/search.graphql (1)

338-338: Approved: Addition of the name field to editableProperties.

The addition of the name field to editableProperties in the nonSiblingsDatasetSearchFields fragment aligns with the PR's objectives and appears correctly implemented.

datahub-web-react/src/graphql/fragments.graphql (1)

254-254: Approved: Addition of the name field to editableProperties.

The addition of the name field to editableProperties in the nonRecursiveDatasetFields fragment is well-placed and supports the functionality of editable dataset names.

Recommendation for UI Integration Testing

Ensure that the UI components consuming this fragment are properly updated to handle the new name field, particularly in areas where dataset names are displayed or edited.

datahub-graphql-core/src/main/resources/entity.graphql (2)

3464-3468: Addition of editable name field to DatasetEditableProperties type

The addition of the name field to DatasetEditableProperties allows for the dataset name to be editable, which aligns with the PR's objectives. This change is consistent and well-documented with a comment describing its purpose.


4837-4840: Addition of editable name field to DatasetEditablePropertiesUpdate input type

The addition of the name field to the DatasetEditablePropertiesUpdate input type is correctly implemented. This change enables the updating of the dataset's name through GraphQL mutations, supporting the functionality described in the PR.

metadata-service/restli-api/src/main/snapshot/com.linkedin.platform.platform.snapshot.json (1)

2246-2253: Added new field name to EditableDatasetProperties

The addition of the name field to the EditableDatasetProperties model is consistent with the PR's objective to allow editable dataset names. This field is optional and supports partial text search, which is suitable for user-facing features where partial matches are common. The documentation string "Editable display name of the Dataset" is clear and informative.

metadata-service/restli-api/src/main/snapshot/com.linkedin.entity.entities.snapshot.json (1)

2246-2253: Review of the newly added name field in editableDatasetProperties

The addition of the name field to the editableDatasetProperties aspect is implemented correctly. It is marked as optional and searchable, which aligns with the need for flexibility in editing and searching by this new business name. The field type is string, and it is indexed as TEXT_PARTIAL, which is suitable for partial text search queries.

@jayasimhankv
Copy link
Contributor Author

@jjoyce0510 - implemented feature flag changes to enable editable dataset name. Please review.

Attached some screenshots for reference:
Application yaml with editable dataset name flag defaulted to false:
Pasted Graphic 169

UI does not allow the name to be edited:
image

Enabled flag through docker environment var for testing:
Pasted Graphic 170

UI allows name to be edited:
image

Updated name:
image

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range, codebase verification and nitpick comments (1)
datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/config/AppConfigResolver.java (1)

189-189: Issue found: editableDatasetNameEnabled flag cannot be toggled.

The editableDatasetNameEnabled feature flag is defined in the FeatureFlags class with a default value of false, but there are no methods or configuration files that allow this flag to be dynamically toggled. This means the feature flag is effectively hardcoded to false.

To resolve this, consider the following actions:

  • Implement a setter method in the FeatureFlags class to allow the editableDatasetNameEnabled flag to be set programmatically.
  • Ensure that the flag can be configured through external configuration files (e.g., YAML, JSON) to allow for dynamic management across different deployment environments.

Locations to address:

  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/featureflags/FeatureFlags.java
Analysis chain

Method call addition approved: setEditableDatasetNameEnabled.

The addition of the setEditableDatasetNameEnabled method call in the AppConfigResolver class is correctly implemented to propagate the feature flag state into the GraphQL schema. This enables the frontend to access and utilize the flag.

Please verify that the feature flag is correctly configured in the backend configuration files to ensure that it behaves as expected across different deployment environments.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the configuration of `editableDatasetNameEnabled` in backend configuration files.

# Test: Search for the configuration of the new feature flag in backend configuration files.
rg --type yaml 'editableDatasetNameEnabled'

Length of output: 43


Script:

#!/bin/bash
# Description: Verify the configuration of `editableDatasetNameEnabled` in backend configuration files.

# Test: Search for the configuration of the new feature flag in properties files.
rg --type properties 'editableDatasetNameEnabled'

# Test: Search for the configuration of the new feature flag in JSON files.
rg --type json 'editableDatasetNameEnabled'

# Test: Search for the configuration of the new feature flag in Java files to see if it's set programmatically.
rg --type java 'editableDatasetNameEnabled'

Length of output: 321


Script:

#!/bin/bash
# Description: Verify the definition and usage of `editableDatasetNameEnabled` in the codebase.

# Test: Find the definition and usage of `editableDatasetNameEnabled` in the `FeatureFlags` class.
ast-grep --lang java --pattern 'class FeatureFlags {
  $$$
  private boolean editableDatasetNameEnabled = $_;
  $$$
}'

# Test: Find all references to `editableDatasetNameEnabled` in the codebase.
rg 'editableDatasetNameEnabled'

Length of output: 670


Script:

#!/bin/bash
# Description: Verify if the `editableDatasetNameEnabled` flag can be toggled in the `FeatureFlags` class.

# Test: Find methods in `FeatureFlags` class that allow setting the `editableDatasetNameEnabled` flag.
ast-grep --lang java --pattern 'class FeatureFlags {
  $$$
  public void setEditableDatasetNameEnabled($_) {
    $$$
  }
  $$$
}'

# Test: Find configuration files that might override the default value of `editableDatasetNameEnabled`.
rg 'editableDatasetNameEnabled' --type yaml --type json

Length of output: 187

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 71d2c14 and 19b9f22.

Files selected for processing (7)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/featureflags/FeatureFlags.java (1 hunks)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/config/AppConfigResolver.java (1 hunks)
  • datahub-graphql-core/src/main/resources/app.graphql (1 hunks)
  • datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx (4 hunks)
  • datahub-web-react/src/app/useAppConfig.ts (1 hunks)
  • datahub-web-react/src/appConfigContext.tsx (1 hunks)
  • datahub-web-react/src/graphql/app.graphql (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx
Additional comments not posted (5)
datahub-web-react/src/app/useAppConfig.ts (1)

31-34: Function useIsEditableDatasetNameEnabled correctly implements feature flag access.

The function is consistent with the existing pattern of accessing feature flags from the application configuration. It should work as intended if the AppConfig and AppConfigContext are correctly set up.

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/featureflags/FeatureFlags.java (1)

24-24: Proper initialization of editableDatasetNameEnabled feature flag.

The feature flag editableDatasetNameEnabled is correctly declared and initialized. This should facilitate controlled rollout of the feature across the platform.

datahub-web-react/src/appConfigContext.tsx (1)

57-57: Addition of editableDatasetNameEnabled to DEFAULT_APP_CONFIG.

The new feature flag has been correctly added to the default application configuration. This ensures that the feature is disabled by default, aligning with the feature flag's intended use.

datahub-web-react/src/graphql/app.graphql (1)

72-72: Inclusion of editableDatasetNameEnabled in appConfig query.

The addition of the editableDatasetNameEnabled field to the appConfig query is correct and necessary for the frontend to access this feature flag. This change should enable the UI to conditionally display the dataset name editing functionality based on the feature flag status.

datahub-graphql-core/src/main/resources/app.graphql (1)

504-504: Field addition approved: editableDatasetNameEnabled in FeatureFlagsConfig.

The addition of editableDatasetNameEnabled as a non-nullable Boolean is appropriate for managing feature availability. It ensures that there is always a definitive true or false state for this feature flag.

Please ensure that this new feature flag is utilized appropriately across the frontend components to control the visibility and functionality of dataset name editing.

@jjoyce0510
Copy link
Collaborator

Thanks - taking another pass here now that the feature flags were added

@rtekal
Copy link
Contributor

rtekal commented Aug 8, 2024

@jjoyce0510 Do you need any more information. Will you be able to give your comments by end of today please.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 19b9f22 and 4d836c3.

Files selected for processing (10)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/featureflags/FeatureFlags.java (1 hunks)
  • datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/config/AppConfigResolver.java (1 hunks)
  • datahub-graphql-core/src/main/resources/app.graphql (1 hunks)
  • datahub-graphql-core/src/main/resources/entity.graphql (2 hunks)
  • datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx (4 hunks)
  • datahub-web-react/src/app/useAppConfig.ts (1 hunks)
  • datahub-web-react/src/appConfigContext.tsx (1 hunks)
  • datahub-web-react/src/graphql/app.graphql (1 hunks)
  • datahub-web-react/src/graphql/fragments.graphql (1 hunks)
  • datahub-web-react/src/graphql/search.graphql (1 hunks)
Additional comments not posted (14)
datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/featureflags/FeatureFlags.java (1)

24-24: LGTM! Addition of feature flag is consistent.

The new editableDatasetNameEnabled field follows the existing pattern for feature flags and is initialized to false, ensuring a safe default state.

datahub-web-react/src/app/useAppConfig.ts (1)

31-34: LGTM! New hook for feature flag is consistent.

The useIsEditableDatasetNameEnabled function is consistent with other hooks in the file, using useAppConfig to access the feature flag.

datahub-web-react/src/appConfigContext.tsx (1)

57-57: LGTM! Addition to default config is consistent.

The editableDatasetNameEnabled property is added to DEFAULT_APP_CONFIG with a default value of false, consistent with other feature flags.

datahub-web-react/src/graphql/app.graphql (1)

72-72: LGTM! Addition of editableDatasetNameEnabled field.

The addition of the editableDatasetNameEnabled field to the featureFlags in the appConfig query is appropriate and aligns with the PR objectives.

datahub-graphql-core/src/main/resources/app.graphql (1)

511-514: LGTM! Addition of editableDatasetNameEnabled field.

The editableDatasetNameEnabled field is correctly added to the FeatureFlagsConfig type with a clear description, aligning with the PR objectives.

datahub-graphql-core/src/main/java/com/linkedin/datahub/graphql/resolvers/config/AppConfigResolver.java (1)

189-189: LGTM! Addition of setEditableDatasetNameEnabled.

The inclusion of setEditableDatasetNameEnabled in the get method of AppConfigResolver is consistent with the existing feature flag pattern and aligns with the PR objectives.

datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx (4)

287-287: Prioritize editableProperties for dataset name.

The logic for determining the dataset name now prioritizes editableProperties. This change aligns with the PR objective to allow editing of dataset names, ensuring that the most relevant name is displayed.


315-315: Consistent prioritization of editableProperties in search results.

The search result rendering now also prioritizes editableProperties for the dataset name, maintaining consistency across different components.


365-365: Update displayName method to use editableProperties.

The displayName method has been updated to first check editableProperties for the dataset name. This ensures that any edited name is consistently displayed across the application.


223-223: Ensure feature flag controls the isNameEditable prop.

The isNameEditable prop is set to true, which allows dataset names to be editable. Consider using a feature flag to control this behavior, as discussed in the PR comments, to mitigate risks and provide flexibility.

datahub-web-react/src/graphql/search.graphql (1)

338-338: Include name in editableProperties for search fields.

The addition of the name field to editableProperties within the nonSiblingsDatasetSearchFields fragment enhances the ability to query editable dataset names. This change supports the PR objective of making dataset names editable and retrievable.

datahub-web-react/src/graphql/fragments.graphql (1)

254-254: Enhance nonRecursiveDatasetFields with name in editableProperties.

The inclusion of the name field in editableProperties within the nonRecursiveDatasetFields fragment allows for more detailed querying of dataset names. This aligns with the goal of enabling editable dataset names.

datahub-graphql-core/src/main/resources/entity.graphql (2)

3485-3489: Addition of name field in DatasetEditableProperties is appropriate.

The new name field allows for editing the dataset's display name, aligning with the PR's objectives. The change is consistent with the existing structure.


4858-4861: Addition of name field in DatasetEditablePropertiesUpdate is appropriate.

The name field is non-nullable, ensuring that a name update is always provided. This supports the functionality of updating dataset names.

Verify the non-null requirement for name.

Ensure that the non-null constraint aligns with the intended functionality and does not introduce issues in scenarios where a name update might not be needed.

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

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

This looks great. Thanks for the contribution!

@jjoyce0510
Copy link
Collaborator

Looks only like minor things -- yarn lint appears to be failing.

To comply with linting:

JAVA

./gradlew datahub-graphql-core:spotlessApply

TYPESCRIPT

cd datahub-web-react && yarn prettier --write src && yarn run lint, then fix issues. If you have "prettier" issues

@jayasimhankv
Copy link
Contributor Author

Thanks for your review. Yes, will address the listing and spotless issues and commit as soon as I am able.

@jayasimhankv
Copy link
Contributor Author

Looks only like minor things -- yarn lint appears to be failing.

To comply with linting:

JAVA

./gradlew datahub-graphql-core:spotlessApply

TYPESCRIPT

cd datahub-web-react && yarn prettier --write src && yarn run lint, then fix issues. If you have "prettier" issues

Committed files after yarn lint fixes. There weren't any spotless fixes.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4d836c3 and 1cc326c.

Files selected for processing (2)
  • datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx (4 hunks)
  • datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx (4 hunks)
Files skipped from review as they are similar to previous changes (1)
  • datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx
Additional comments not posted (4)
datahub-web-react/src/app/entity/shared/containers/profile/header/EntityHeader.tsx (4)

20-20: Import addition looks good.

The addition of useIsEditableDatasetNameEnabled is appropriate for checking if the dataset name editing feature is enabled.


75-76: Addition of EntityType.Dataset case is appropriate.

The new case correctly checks for the privilege to edit dataset properties, aligning with the PR's objective.


100-104: Update to canEditName logic is sensible.

Incorporating useIsEditableDatasetNameEnabled ensures that the editability of the dataset name is controlled by the feature flag, which is a good practice.


115-115: Explicitly setting isNameEditable to false is a good practice.

Ensuring that isNameEditable defaults to false prevents potential errors if canEditName is undefined.

@rtekal
Copy link
Contributor

rtekal commented Aug 9, 2024

@jjoyce0510 Thank you very much for your review. Hope it can get merged and be part of a release soon.
I can try to repay you... please tag me if I can be of any help.

@jjoyce0510 jjoyce0510 merged commit 3a38415 into datahub-project:master Aug 9, 2024
61 of 65 checks passed
arosanda added a commit to infobip/datahub that referenced this pull request Sep 23, 2024
* feat(forms) Handle deleting forms references when hard deleting forms (datahub-project#10820)

* refactor(ui): Misc improvements to the setup ingestion flow (ingest uplift 1/2)  (datahub-project#10764)

Co-authored-by: John Joyce <[email protected]>
Co-authored-by: John Joyce <[email protected]>

* fix(ingestion/airflow-plugin): pipeline tasks discoverable in search (datahub-project#10819)

* feat(ingest/transformer): tags to terms transformer (datahub-project#10758)

Co-authored-by: Aseem Bansal <[email protected]>

* fix(ingestion/unity-catalog): fixed issue with profiling with GE turned on (datahub-project#10752)

Co-authored-by: Aseem Bansal <[email protected]>

* feat(forms) Add java SDK for form entity PATCH + CRUD examples (datahub-project#10822)

* feat(SDK) Add java SDK for structuredProperty entity PATCH + CRUD examples (datahub-project#10823)

* feat(SDK) Add StructuredPropertyPatchBuilder in python sdk and provide sample CRUD files (datahub-project#10824)

* feat(forms) Add CRUD endpoints to GraphQL for Form entities (datahub-project#10825)

* add flag for includeSoftDeleted in scroll entities API (datahub-project#10831)

* feat(deprecation) Return actor entity with deprecation aspect (datahub-project#10832)

* feat(structuredProperties) Add CRUD graphql APIs for structured property entities (datahub-project#10826)

* add scroll parameters to openapi v3 spec (datahub-project#10833)

* fix(ingest): correct profile_day_of_week implementation (datahub-project#10818)

* feat(ingest/glue): allow ingestion of empty databases from Glue (datahub-project#10666)

Co-authored-by: Harshal Sheth <[email protected]>

* feat(cli): add more details to get cli (datahub-project#10815)

* fix(ingestion/glue): ensure date formatting works on all platforms for aws glue (datahub-project#10836)

* fix(ingestion): fix datajob patcher (datahub-project#10827)

* fix(smoke-test): add suffix in temp file creation (datahub-project#10841)

* feat(ingest/glue): add helper method to permit user or group ownership (datahub-project#10784)

* feat(): Show data platform instances in policy modal if they are set on the policy (datahub-project#10645)

Co-authored-by: Hendrik Richert <[email protected]>

* docs(patch): add patch documentation for how implementation works (datahub-project#10010)

Co-authored-by: John Joyce <[email protected]>

* fix(jar): add missing custom-plugin-jar task (datahub-project#10847)

* fix(): also check exceptions/stack trace when filtering log messages (datahub-project#10391)

Co-authored-by: John Joyce <[email protected]>

* docs(): Update posts.md (datahub-project#9893)

Co-authored-by: Hyejin Yoon <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* chore(ingest): update acryl-datahub-classify version (datahub-project#10844)

* refactor(ingest): Refactor structured logging to support infos, warnings, and failures structured reporting to UI (datahub-project#10828)

Co-authored-by: John Joyce <[email protected]>
Co-authored-by: Harshal Sheth <[email protected]>

* fix(restli): log aspect-not-found as a warning rather than as an error (datahub-project#10834)

* fix(ingest/nifi): remove duplicate upstream jobs (datahub-project#10849)

* fix(smoke-test): test access to create/revoke personal access tokens (datahub-project#10848)

* fix(smoke-test): missing test for move domain (datahub-project#10837)

* ci: update usernames to not considered for community (datahub-project#10851)

* env: change defaults for data contract visibility (datahub-project#10854)

* fix(ingest/tableau): quote special characters in external URL (datahub-project#10842)

* fix(smoke-test): fix flakiness of auto complete test

* ci(ingest): pin dask dependency for feast (datahub-project#10865)

* fix(ingestion/lookml): liquid template resolution and view-to-view cll (datahub-project#10542)

* feat(ingest/audit): add client id and version in system metadata props (datahub-project#10829)

* chore(ingest): Mypy 1.10.1 pin (datahub-project#10867)

* docs: use acryl-datahub-actions as expected python package to install (datahub-project#10852)

* docs: add new js snippet (datahub-project#10846)

* refactor(ingestion): remove company domain for security reason (datahub-project#10839)

* fix(ingestion/spark): Platform instance and column level lineage fix (datahub-project#10843)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* feat(ingestion/tableau): optionally ingest multiple sites and create site containers (datahub-project#10498)

Co-authored-by: Yanik Häni <[email protected]>

* fix(ingestion/looker): Add sqlglot dependency and remove unused sqlparser (datahub-project#10874)

* fix(manage-tokens): fix manage access token policy (datahub-project#10853)

* Batch get entity endpoints (datahub-project#10880)

* feat(system): support conditional write semantics (datahub-project#10868)

* fix(build): upgrade vercel builds to Node 20.x (datahub-project#10890)

* feat(ingest/lookml): shallow clone repos (datahub-project#10888)

* fix(ingest/looker): add missing dependency (datahub-project#10876)

* fix(ingest): only populate audit stamps where accurate (datahub-project#10604)

* fix(ingest/dbt): always encode tag urns (datahub-project#10799)

* fix(ingest/redshift): handle multiline alter table commands (datahub-project#10727)

* fix(ingestion/looker): column name missing in explore (datahub-project#10892)

* fix(lineage) Fix lineage source/dest filtering with explored per hop limit (datahub-project#10879)

* feat(conditional-writes): misc updates and fixes (datahub-project#10901)

* feat(ci): update outdated action (datahub-project#10899)

* feat(rest-emitter): adding async flag to rest emitter (datahub-project#10902)

Co-authored-by: Gabe Lyons <[email protected]>

* feat(ingest): add snowflake-queries source (datahub-project#10835)

* fix(ingest): improve `auto_materialize_referenced_tags_terms` error handling (datahub-project#10906)

* docs: add new company to adoption list (datahub-project#10909)

* refactor(redshift): Improve redshift error handling with new structured reporting system (datahub-project#10870)

Co-authored-by: John Joyce <[email protected]>
Co-authored-by: Harshal Sheth <[email protected]>

* feat(ui) Finalize support for all entity types on forms (datahub-project#10915)

* Index ExecutionRequestResults status field (datahub-project#10811)

* feat(ingest): grafana connector (datahub-project#10891)

Co-authored-by: Shirshanka Das <[email protected]>
Co-authored-by: Harshal Sheth <[email protected]>

* fix(gms) Add Form entity type to EntityTypeMapper (datahub-project#10916)

* feat(dataset): add support for external url in Dataset (datahub-project#10877)

* docs(saas-overview) added missing features to observe section (datahub-project#10913)

Co-authored-by: John Joyce <[email protected]>

* fix(ingest/spark): Fixing Micrometer warning (datahub-project#10882)

* fix(structured properties): allow application of structured properties without schema file (datahub-project#10918)

* fix(data-contracts-web) handle other schedule types (datahub-project#10919)

* fix(ingestion/tableau): human-readable message for PERMISSIONS_MODE_SWITCHED error (datahub-project#10866)

Co-authored-by: Harshal Sheth <[email protected]>

* Add feature flag for view defintions (datahub-project#10914)

Co-authored-by: Ethan Cartwright <[email protected]>

* feat(ingest/BigQuery): refactor+parallelize dataset metadata extraction (datahub-project#10884)

* fix(airflow): add error handling around render_template() (datahub-project#10907)

* feat(ingestion/sqlglot): add optional `default_dialect` parameter to sqlglot lineage (datahub-project#10830)

* feat(mcp-mutator): new mcp mutator plugin (datahub-project#10904)

* fix(ingest/bigquery): changes helper function to decode unicode scape sequences (datahub-project#10845)

* feat(ingest/postgres): fetch table sizes for profile (datahub-project#10864)

* feat(ingest/abs): Adding azure blob storage ingestion source (datahub-project#10813)

* fix(ingest/redshift): reduce severity of SQL parsing issues (datahub-project#10924)

* fix(build): fix lint fix web react (datahub-project#10896)

* fix(ingest/bigquery): handle quota exceeded for project.list requests (datahub-project#10912)

* feat(ingest): report extractor failures more loudly (datahub-project#10908)

* feat(ingest/snowflake): integrate snowflake-queries into main source (datahub-project#10905)

* fix(ingest): fix docs build (datahub-project#10926)

* fix(ingest/snowflake): fix test connection (datahub-project#10927)

* fix(ingest/lookml): add view load failures to cache (datahub-project#10923)

* docs(slack) overhauled setup instructions and screenshots (datahub-project#10922)

Co-authored-by: John Joyce <[email protected]>

* fix(airflow): Add comma parsing of owners to DataJobs (datahub-project#10903)

* fix(entityservice): fix merging sideeffects (datahub-project#10937)

* feat(ingest): Support System Ingestion Sources, Show and hide system ingestion sources with Command-S (datahub-project#10938)

Co-authored-by: John Joyce <[email protected]>

* chore() Set a default lineage filtering end time on backend when a start time is present (datahub-project#10925)

Co-authored-by: John Joyce <[email protected]>
Co-authored-by: John Joyce <[email protected]>

* Added relationships APIs to V3. Added these generic APIs to V3 swagger doc. (datahub-project#10939)

* docs: add learning center to docs (datahub-project#10921)

* doc: Update hubspot form id (datahub-project#10943)

* chore(airflow): add python 3.11 w/ Airflow 2.9 to CI (datahub-project#10941)

* fix(ingest/Glue): column upstream lineage between S3 and Glue (datahub-project#10895)

* fix(ingest/abs): split abs utils into multiple files (datahub-project#10945)

* doc(ingest/looker): fix doc for sql parsing documentation (datahub-project#10883)

Co-authored-by: Harshal Sheth <[email protected]>

* fix(ingest/bigquery): Adding missing BigQuery types (datahub-project#10950)

* fix(ingest/setup): feast and abs source setup (datahub-project#10951)

* fix(connections) Harden adding /gms to connections in backend (datahub-project#10942)

* feat(siblings) Add flag to prevent combining siblings in the UI (datahub-project#10952)

* fix(docs): make graphql doc gen more automated (datahub-project#10953)

* feat(ingest/athena): Add option for Athena partitioned profiling (datahub-project#10723)

* fix(spark-lineage): default timeout for future responses (datahub-project#10947)

* feat(datajob/flow): add environment filter using info aspects (datahub-project#10814)

* fix(ui/ingest): correct privilege used to show tab (datahub-project#10483)

Co-authored-by: Kunal-kankriya <[email protected]>

* feat(ingest/looker): include dashboard urns in browse v2 (datahub-project#10955)

* add a structured type to batchGet in OpenAPI V3 spec (datahub-project#10956)

* fix(ui): scroll on the domain sidebar to show all domains (datahub-project#10966)

* fix(ingest/sagemaker): resolve incorrect variable assignment for SageMaker API call (datahub-project#10965)

* fix(airflow/build): Pinning mypy (datahub-project#10972)

* Fixed a bug where the OpenAPI V3 spec was incorrect. The bug was introduced in datahub-project#10939. (datahub-project#10974)

* fix(ingest/test): Fix for mssql integration tests (datahub-project#10978)

* fix(entity-service) exist check correctly extracts status (datahub-project#10973)

* fix(structuredProps) casing bug in StructuredPropertiesValidator (datahub-project#10982)

* bugfix: use anyOf instead of allOf when creating references in openapi v3 spec (datahub-project#10986)

* fix(ui): Remove ant less imports (datahub-project#10988)

* feat(ingest/graph): Add get_results_by_filter to DataHubGraph (datahub-project#10987)

* feat(ingest/cli): init does not actually support environment variables (datahub-project#10989)

* fix(ingest/graph): Update get_results_by_filter graphql query (datahub-project#10991)

* feat(ingest/spark): Promote beta plugin (datahub-project#10881)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* feat(ingest): support domains in meta -> "datahub" section (datahub-project#10967)

* feat(ingest): add `check server-config` command (datahub-project#10990)

* feat(cli): Make consistent use of DataHubGraphClientConfig (datahub-project#10466)

Deprecates get_url_and_token() in favor of a more complete option: load_graph_config() that returns a full DatahubClientConfig.
This change was then propagated across previous usages of get_url_and_token so that connections to DataHub server from the client respect the full breadth of configuration specified by DatahubClientConfig.

I.e: You can now specify disable_ssl_verification: true in your ~/.datahubenv file so that all cli functions to the server work when ssl certification is disabled.

Fixes datahub-project#9705

* fix(ingest/s3): Fixing container creation when there is no folder in path (datahub-project#10993)

* fix(ingest/looker): support platform instance for dashboards & charts (datahub-project#10771)

* feat(ingest/bigquery): improve handling of information schema in sql parser (datahub-project#10985)

* feat(ingest): improve `ingest deploy` command (datahub-project#10944)

* fix(backend): allow excluding soft-deleted entities in relationship-queries; exclude soft-deleted members of groups (datahub-project#10920)

- allow excluding soft-deleted entities in relationship-queries
- exclude soft-deleted members of groups

* fix(ingest/looker): downgrade missing chart type log level (datahub-project#10996)

* doc(acryl-cloud): release docs for 0.3.4.x (datahub-project#10984)

Co-authored-by: John Joyce <[email protected]>
Co-authored-by: RyanHolstien <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Pedro Silva <[email protected]>

* fix(protobuf/build): Fix protobuf check jar script (datahub-project#11006)

* fix(ui/ingest): Support invalid cron jobs (datahub-project#10998)

* fix(ingest): fix graph config loading (datahub-project#11002)

Co-authored-by: Pedro Silva <[email protected]>

* feat(docs): Document __DATAHUB_TO_FILE_ directive (datahub-project#10968)

Co-authored-by: Harshal Sheth <[email protected]>

* fix(graphql/upsertIngestionSource): Validate cron schedule; parse error in CLI (datahub-project#11011)

* feat(ece): support custom ownership type urns in ECE generation (datahub-project#10999)

* feat(assertion-v2): changed Validation tab to Quality and created new Governance tab (datahub-project#10935)

* fix(ingestion/glue): Add support for missing config options for profiling in Glue (datahub-project#10858)

* feat(propagation): Add models for schema field docs, tags, terms (datahub-project#2959) (datahub-project#11016)

Co-authored-by: Chris Collins <[email protected]>

* docs: standardize terminology to DataHub Cloud (datahub-project#11003)

* fix(ingestion/transformer): replace the externalUrl container (datahub-project#11013)

* docs(slack) troubleshoot docs (datahub-project#11014)

* feat(propagation): Add graphql API (datahub-project#11030)

Co-authored-by: Chris Collins <[email protected]>

* feat(propagation):  Add models for Action feature settings (datahub-project#11029)

* docs(custom properties): Remove duplicate from sidebar (datahub-project#11033)

* feat(models): Introducing Dataset Partitions Aspect (datahub-project#10997)

Co-authored-by: John Joyce <[email protected]>
Co-authored-by: John Joyce <[email protected]>

* feat(propagation): Add Documentation Propagation Settings (datahub-project#11038)

* fix(models): chart schema fields mapping, add dataHubAction entity, t… (datahub-project#11040)

* fix(ci): smoke test lint failures (datahub-project#11044)

* docs: fix learning center color scheme & typo (datahub-project#11043)

* feat: add cloud main page (datahub-project#11017)

Co-authored-by: Jay <[email protected]>

* feat(restore-indices): add additional step to also clear system metadata service (datahub-project#10662)

Co-authored-by: John Joyce <[email protected]>

* docs: fix typo (datahub-project#11046)

* fix(lint): apply spotless (datahub-project#11050)

* docs(airflow): example query to get datajobs for a dataflow (datahub-project#11034)

* feat(cli): Add run-id option to put sub-command (datahub-project#11023)

Adds an option to assign run-id to a given put command execution. 
This is useful when transformers do not exist for a given ingestion payload, we can follow up with custom metadata and assign it to an ingestion pipeline.

* fix(ingest): improve sql error reporting calls (datahub-project#11025)

* fix(airflow): fix CI setup (datahub-project#11031)

* feat(ingest/dbt): add experimental `prefer_sql_parser_lineage` flag (datahub-project#11039)

* fix(ingestion/lookml): enable stack-trace in lookml logs (datahub-project#10971)

* (chore): Linting fix (datahub-project#11015)

* chore(ci): update deprecated github actions (datahub-project#10977)

* Fix ALB configuration example (datahub-project#10981)

* chore(ingestion-base): bump base image packages (datahub-project#11053)

* feat(cli): Trim report of dataHubExecutionRequestResult to max GMS size (datahub-project#11051)

* fix(ingestion/lookml): emit dummy sql condition for lookml custom condition tag (datahub-project#11008)

Co-authored-by: Harshal Sheth <[email protected]>

* fix(ingestion/powerbi): fix issue with broken report lineage (datahub-project#10910)

* feat(ingest/tableau): add retry on timeout (datahub-project#10995)

* change generate kafka connect properties from env (datahub-project#10545)

Co-authored-by: david-leifker <[email protected]>

* fix(ingest): fix oracle cronjob ingestion (datahub-project#11001)

Co-authored-by: david-leifker <[email protected]>

* chore(ci): revert update deprecated github actions (datahub-project#10977) (datahub-project#11062)

* feat(ingest/dbt-cloud): update metadata_endpoint inference (datahub-project#11041)

* build: Reduce size of datahub-frontend-react image by 50-ish% (datahub-project#10878)

Co-authored-by: david-leifker <[email protected]>

* fix(ci): Fix lint issue in datahub_ingestion_run_summary_provider.py (datahub-project#11063)

* docs(ingest): update developing-a-transformer.md (datahub-project#11019)

* feat(search-test): update search tests from datahub-project#10408 (datahub-project#11056)

* feat(cli): add aspects parameter to DataHubGraph.get_entity_semityped (datahub-project#11009)

Co-authored-by: Harshal Sheth <[email protected]>

* docs(airflow): update min version for plugin v2 (datahub-project#11065)

* doc(ingestion/tableau): doc update for derived permission (datahub-project#11054)

Co-authored-by: Pedro Silva <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Harshal Sheth <[email protected]>

* fix(py): remove dep on types-pkg_resources (datahub-project#11076)

* feat(ingest/mode): add option to exclude restricted (datahub-project#11081)

* fix(ingest): set lastObserved in sdk when unset (datahub-project#11071)

* doc(ingest): Update capabilities (datahub-project#11072)

* chore(vulnerability): Log Injection (datahub-project#11090)

* chore(vulnerability): Information exposure through a stack trace (datahub-project#11091)

* chore(vulnerability): Comparison of narrow type with wide type in loop condition (datahub-project#11089)

* chore(vulnerability): Insertion of sensitive information into log files (datahub-project#11088)

* chore(vulnerability): Risky Cryptographic Algorithm (datahub-project#11059)

* chore(vulnerability): Overly permissive regex range (datahub-project#11061)

Co-authored-by: Harshal Sheth <[email protected]>

* fix: update customer data (datahub-project#11075)

* fix(models): fixing the datasetPartition models (datahub-project#11085)

Co-authored-by: John Joyce <[email protected]>

* fix(ui): Adding view, forms GraphQL query, remove showing a fallback error message on unhandled GraphQL error (datahub-project#11084)

Co-authored-by: John Joyce <[email protected]>

* feat(docs-site): hiding learn more from cloud page (datahub-project#11097)

* fix(docs): Add correct usage of orFilters in search API docs (datahub-project#11082)

Co-authored-by: Jay <[email protected]>

* fix(ingest/mode): Regexp in mode name matcher didn't allow underscore (datahub-project#11098)

* docs: Refactor customer stories section (datahub-project#10869)

Co-authored-by: Jeff Merrick <[email protected]>

* fix(release): fix full/slim suffix on tag (datahub-project#11087)

* feat(config): support alternate hashing algorithm for doc id (datahub-project#10423)

Co-authored-by: david-leifker <[email protected]>
Co-authored-by: John Joyce <[email protected]>

* fix(emitter): fix typo in get method of java kafka emitter (datahub-project#11007)

* fix(ingest): use correct native data type in all SQLAlchemy sources by compiling data type using dialect (datahub-project#10898)

Co-authored-by: Harshal Sheth <[email protected]>

* chore: Update contributors list in PR labeler (datahub-project#11105)

* feat(ingest): tweak stale entity removal messaging (datahub-project#11064)

* fix(ingestion): enforce lastObserved timestamps in SystemMetadata (datahub-project#11104)

* fix(ingest/powerbi): fix broken lineage between chart and dataset (datahub-project#11080)

* feat(ingest/lookml): CLL support for sql set in sql_table_name attribute of lookml view (datahub-project#11069)

* docs: update graphql docs on forms & structured properties (datahub-project#11100)

* test(search): search openAPI v3 test (datahub-project#11049)

* fix(ingest/tableau): prevent empty site content urls (datahub-project#11057)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* feat(entity-client): implement client batch interface (datahub-project#11106)

* fix(snowflake): avoid reporting warnings/info for sys tables (datahub-project#11114)

* fix(ingest): downgrade column type mapping warning to info (datahub-project#11115)

* feat(api): add AuditStamp to the V3 API entity/aspect response (datahub-project#11118)

* fix(ingest/redshift): replace r'\n' with '\n' to avoid token error redshift serverless… (datahub-project#11111)

* fix(entiy-client): handle null entityUrn case for restli (datahub-project#11122)

* fix(sql-parser): prevent bad urns from alter table lineage (datahub-project#11092)

* fix(ingest/bigquery): use small batch size if use_tables_list_query_v2 is set (datahub-project#11121)

* fix(graphql): add missing entities to EntityTypeMapper and EntityTypeUrnMapper (datahub-project#10366)

* feat(ui): Changes to allow editable dataset name (datahub-project#10608)

Co-authored-by: Jay Kadambi <[email protected]>

* fix: remove saxo (datahub-project#11127)

* feat(mcl-processor): Update mcl processor hooks (datahub-project#11134)

* fix(openapi): fix openapi v2 endpoints & v3 documentation update

* Revert "fix(openapi): fix openapi v2 endpoints & v3 documentation update"

This reverts commit 573c1cb.

* docs(policies): updates to policies documentation (datahub-project#11073)

* fix(openapi): fix openapi v2 and v3 docs update (datahub-project#11139)

* feat(auth): grant type and acr values custom oidc parameters support (datahub-project#11116)

* fix(mutator): mutator hook fixes (datahub-project#11140)

* feat(search): support sorting on multiple fields (datahub-project#10775)

* feat(ingest): various logging improvements (datahub-project#11126)

* fix(ingestion/lookml): fix for sql parsing error (datahub-project#11079)

Co-authored-by: Harshal Sheth <[email protected]>

* feat(docs-site) cloud page spacing and content polishes (datahub-project#11141)

* feat(ui) Enable editing structured props on fields (datahub-project#11042)

* feat(tests): add md5 and last computed to testResult model (datahub-project#11117)

* test(openapi): openapi regression smoke tests (datahub-project#11143)

* fix(airflow): fix tox tests + update docs (datahub-project#11125)

* docs: add chime to adoption stories (datahub-project#11142)

* fix(ingest/databricks): Updating code to work with Databricks sdk 0.30 (datahub-project#11158)

* fix(kafka-setup): add missing script to image (datahub-project#11190)

* fix(config): fix hash algo config (datahub-project#11191)

* test(smoke-test): updates to smoke-tests (datahub-project#11152)

* fix(elasticsearch): refactor idHashAlgo setting (datahub-project#11193)

* chore(kafka): kafka version bump (datahub-project#11211)

* readd UsageStatsWorkUnit

* fix merge problems

* change logo

---------

Co-authored-by: Chris Collins <[email protected]>
Co-authored-by: John Joyce <[email protected]>
Co-authored-by: John Joyce <[email protected]>
Co-authored-by: John Joyce <[email protected]>
Co-authored-by: dushayntAW <[email protected]>
Co-authored-by: sagar-salvi-apptware <[email protected]>
Co-authored-by: Aseem Bansal <[email protected]>
Co-authored-by: Kevin Chun <[email protected]>
Co-authored-by: jordanjeremy <[email protected]>
Co-authored-by: skrydal <[email protected]>
Co-authored-by: Harshal Sheth <[email protected]>
Co-authored-by: david-leifker <[email protected]>
Co-authored-by: sid-acryl <[email protected]>
Co-authored-by: Julien Jehannet <[email protected]>
Co-authored-by: Hendrik Richert <[email protected]>
Co-authored-by: Hendrik Richert <[email protected]>
Co-authored-by: RyanHolstien <[email protected]>
Co-authored-by: Felix Lüdin <[email protected]>
Co-authored-by: Pirry <[email protected]>
Co-authored-by: Hyejin Yoon <[email protected]>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: cburroughs <[email protected]>
Co-authored-by: ksrinath <[email protected]>
Co-authored-by: Mayuri Nehate <[email protected]>
Co-authored-by: Kunal-kankriya <[email protected]>
Co-authored-by: Shirshanka Das <[email protected]>
Co-authored-by: ipolding-cais <[email protected]>
Co-authored-by: Tamas Nemeth <[email protected]>
Co-authored-by: Shubham Jagtap <[email protected]>
Co-authored-by: haeniya <[email protected]>
Co-authored-by: Yanik Häni <[email protected]>
Co-authored-by: Gabe Lyons <[email protected]>
Co-authored-by: Gabe Lyons <[email protected]>
Co-authored-by: 808OVADOZE <[email protected]>
Co-authored-by: noggi <[email protected]>
Co-authored-by: Nicholas Pena <[email protected]>
Co-authored-by: Jay <[email protected]>
Co-authored-by: ethan-cartwright <[email protected]>
Co-authored-by: Ethan Cartwright <[email protected]>
Co-authored-by: Nadav Gross <[email protected]>
Co-authored-by: Patrick Franco Braz <[email protected]>
Co-authored-by: pie1nthesky <[email protected]>
Co-authored-by: Joel Pinto Mata (KPN-DSH-DEX team) <[email protected]>
Co-authored-by: Ellie O'Neil <[email protected]>
Co-authored-by: Ajoy Majumdar <[email protected]>
Co-authored-by: deepgarg-visa <[email protected]>
Co-authored-by: Tristan Heisler <[email protected]>
Co-authored-by: Andrew Sikowitz <[email protected]>
Co-authored-by: Davi Arnaut <[email protected]>
Co-authored-by: Pedro Silva <[email protected]>
Co-authored-by: amit-apptware <[email protected]>
Co-authored-by: Sam Black <[email protected]>
Co-authored-by: Raj Tekal <[email protected]>
Co-authored-by: Steffen Grohsschmiedt <[email protected]>
Co-authored-by: jaegwon.seo <[email protected]>
Co-authored-by: Renan F. Lima <[email protected]>
Co-authored-by: Matt Exchange <[email protected]>
Co-authored-by: Jonny Dixon <[email protected]>
Co-authored-by: Pedro Silva <[email protected]>
Co-authored-by: Pinaki Bhattacharjee <[email protected]>
Co-authored-by: Jeff Merrick <[email protected]>
Co-authored-by: skrydal <[email protected]>
Co-authored-by: AndreasHegerNuritas <[email protected]>
Co-authored-by: jayasimhankv <[email protected]>
Co-authored-by: Jay Kadambi <[email protected]>
Co-authored-by: David Leifker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants