Skip to content

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jun 22, 2021

COMPASS-4781

This PR updates how we show documents in time-series collections to only show cloning and copying documents (time-series collections can only be added to, not edited).

Since we were customizing the actions for certain collections, I also noticed we could add copying documents in a few places. This pr adds the ability to copy an explain plan and copy a document in a view.

A bit of refactoring on how tabs pass their collection information around, less argument list and more objects - is this a useful refactor?
Maybe we wait till post 1.27 to merge since it hits a few packages.
These changes also fix a couple smaller bugs when user would create new tabs from a read only view, they would be shown editing functionality.

document in time-series collection
Screen Shot 2021-06-22 at 11 49 26 AM

document in view w/ copy button
Screen Shot 2021-06-22 at 11 48 54 AM

explain w/ copy button
Screen Shot 2021-06-22 at 11 48 04 AM

this.props.activeIsReadonly,
this.props.activeSourceName
);
this.props.createNewTab({
Copy link
Member Author

Choose a reason for hiding this comment

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

Ah we need to send it here too - looks like this might also be a small bug with not supplying the sourcePipeline as well

Copy link
Collaborator

@gribnoysup gribnoysup left a comment

Choose a reason for hiding this comment

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

Looks good

);
this.props.selectOrCreateTab({
namespace: this.props.editViewName,
isReadonly: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Definitely easier to see what's up at a glance now 👍

@Anemy Anemy merged commit 8291bb5 into main Jun 23, 2021
@Anemy Anemy deleted the COMPASS-4781 branch June 23, 2021 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants