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

fix(tags): fix ownership on tag create #2253

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public List<BrowsePath> browsePaths(@Nonnull String urn, @Nonnull final QueryCon
@Override
public Dataset update(@Nonnull DatasetUpdateInput input, @Nonnull QueryContext context) throws Exception {
// TODO: Verify that updater is owner.
final CorpuserUrn actor = new CorpuserUrn(context.getActor());
final CorpuserUrn actor = CorpuserUrn.createFromString(context.getActor());
final com.linkedin.dataset.Dataset partialDataset = DatasetUpdateInputMapper.map(input);

// Create Audit Stamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public AutoCompleteResults autoComplete(@Nonnull String query,
@Override
public Tag update(@Nonnull TagUpdate input, @Nonnull QueryContext context) throws Exception {
// TODO: Verify that updater is owner.
final CorpuserUrn actor = new CorpuserUrn(context.getActor());
final CorpuserUrn actor = CorpuserUrn.createFromString(context.getActor());
final com.linkedin.tag.Tag partialTag = TagUpdateMapper.map(input);

// Create Audit Stamp
Expand Down