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

feat(chrom-ext-editable): set readOnly to false so that side navigati… #8930

Conversation

Endtry
Copy link
Contributor

@Endtry Endtry commented Oct 2, 2023

…on items are editable

Description

In this PR, the embedded view used by the Chrome extension is made editable by setting the readOnly=false property to false. The web-react app embedded view can be accessed via the URL:

http://localhost:3000/embed/dataset/urn:li:dataset:(urn:li:dataPlatform:hive,SampleHiveDataset,PROD)/Schema?is_lineage_mode=false&schemaFilter=

Editable sections:

  1. SidebarAboutSection
  2. SidebarOwnerSection
  3. SidebarTagsSection
  4. SidebarTagsSection
  5. SidebarDomainSection
  6. DataProductSection

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

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Oct 2, 2023
Comment on lines +85 to +93
<SidebarAboutSection readOnly={readOnly} />
<StyledDivider />
<SidebarOwnerSection readOnly />
<SidebarOwnerSection readOnly={readOnly} />
<StyledDivider />
<SidebarTagsSection readOnly properties={{ hasTags: true, hasTerms: true }} />
<SidebarTagsSection readOnly={readOnly} properties={{ hasTags: true, hasTerms: true }} />
<StyledDivider />
<SidebarDomainSection readOnly />
<SidebarDomainSection readOnly={readOnly} />
<StyledDivider />
<DataProductSection readOnly />
<DataProductSection readOnly={readOnly} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

an even simpler approach here could be just to remove the prop readOnly entirely! since it's an optional property and only takes readOnly actions if you pass in a true value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @chriscollins3456, thought of removing the readOnly entirely too. Writing it this way makes it clear to the reader our intention and easier to switch back if we need to. Say the word and I will remove these lines.

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah that's fair enough - let's go with your way I'm always pro for more clarity!

@chriscollins3456 chriscollins3456 merged commit 83a7dad into datahub-project:master Oct 3, 2023
42 checks passed
@maggiehays maggiehays added the hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Acceptance for hacktoberfest https://hacktoberfest.com/participation/ product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants