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(urn) Add validator to reject URNs which contain the character we plan to u… #7859

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

iprentic
Copy link
Contributor

…se as a delimiter

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

Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

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

nice! thanks for taking care of this

@@ -170,6 +170,9 @@ public static class IngestProposalResult {

private static final int URN_NUM_BYTES_LIMIT = 512;

// TODO(iprentic): Move this to a common utils location once used in other places
private static final String DELIMITER_SEPARATOR = "␟";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be less visually weird to have this as the character code rather than a blank looking String in case someone edits this without understanding it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I like the way it is actually

Copy link
Collaborator

@RyanHolstien RyanHolstien left a comment

Choose a reason for hiding this comment

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

LGTM, if comment doesn't make sense or you disagree don't consider it blocking :)

@david-leifker david-leifker merged commit e9364ed into master Apr 20, 2023
@david-leifker david-leifker deleted the separatorchar branch April 20, 2023 16:00
iprentic added a commit that referenced this pull request Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants