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

QA-15066: add unpublish action on vanity urls #221

Merged
merged 4 commits into from
Jul 17, 2024
Merged

QA-15066: add unpublish action on vanity urls #221

merged 4 commits into from
Jul 17, 2024

Conversation

jsinovassin
Copy link
Contributor

@jsinovassin jsinovassin commented Jul 10, 2024

@jsinovassin jsinovassin requested a review from a team as a code owner July 10, 2024 16:21
@jsinovassin jsinovassin changed the title Qa 15066 QA-15066: add unpublish action on vanity urls Jul 10, 2024
@jsinovassin jsinovassin requested a review from jkevan July 11, 2024 12:49
jkevan
jkevan previously approved these changes Jul 11, 2024
@@ -37,13 +37,12 @@ export const Toolbar = ({selection, onChangeSelection, actions}) => {
actions={actions}
render={ButtonRenderer}
filter={action => {
return action.key !== 'updateVanity';
return !['updateVanity', 'unpublish'].includes(action.key);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks dirty to filter action here, since actions are normally based on targets to choose where they should appears or not. But it was already like that before your changes, so I am assuming we can keep this for now.

};

export const atLeastOneLockedForValidation = urls => {
return urls.some(url => url.default.lockedAndCannotBeEdited && url.default.lockInfo.details.some(detail => detail.type === 'validation'));
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have undefined protection on this nesting object access ?

@jsinovassin jsinovassin dismissed jkevan’s stale review July 12, 2024 14:17

The merge-base changed after approval.

@jsinovassin jsinovassin merged commit f91c0d6 into master Jul 17, 2024
7 checks passed
@jsinovassin jsinovassin deleted the QA-15066 branch July 17, 2024 08:56
jsinovassin added a commit that referenced this pull request Jul 17, 2024
* QA-15066: add unpublish action on vanity urls
* fix publication check failing after moving a url
jsinovassin added a commit that referenced this pull request Jul 17, 2024
* QA-15066: add unpublish action on vanity urls
* fix publication check failing after moving a url
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.

3 participants