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

PRO-7053: enable document-versions for autopublished docs #4851

Merged
merged 6 commits into from
Feb 10, 2025

Conversation

ETLaurent
Copy link
Contributor

@ETLaurent ETLaurent commented Jan 29, 2025

Summary

See: https://github.com/apostrophecms/document-versions/pull/73

And:
https://github.com/apostrophecms/palette/pull/110
apostrophecms/import-export#102

Cypress tests:

https://github.com/apostrophecms/testbed/pull/323

What kind of change does this PR introduce?

(Check at least one)

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Build-related changes
  • Other

Make sure the PR fulfills these requirements:

  • It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves
  • The changelog is updated
  • Related documentation has been updated
  • Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

boutell
boutell previously approved these changes Jan 30, 2025
@@ -5,6 +5,7 @@ module.exports = {
pluralLabel: 'apostrophe:fileTags',
quickCreate: false,
autopublish: true,
versions: true,
Copy link
Member

Choose a reason for hiding this comment

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

Yeah... we could do this in an improvement in the document-versions module, but this is a lot less typing and harms nothing when it is not present. 👍

@@ -80,6 +80,7 @@ export default {

if (modal) {
await apos.modal.execute(modal, {
moduleName: this.moduleOptions.name,
Copy link
Member

Choose a reason for hiding this comment

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

So you can look up options of it, OK

@ETLaurent ETLaurent changed the title Pro 7053 document versions autopublish PRO-7053: enable document-versions for autopublished docs Feb 6, 2025
@ETLaurent ETLaurent requested a review from boutell February 6, 2025 16:35
@ETLaurent ETLaurent marked this pull request as ready for review February 6, 2025 16:35
boutell
boutell previously approved these changes Feb 7, 2025
@@ -48,6 +48,7 @@ module.exports = {
searchable: false,
slugPrefix: 'user-',
localized: false,
versions: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@boutell added this as an extra security

@ETLaurent ETLaurent requested a review from boutell February 8, 2025 12:29
@ETLaurent ETLaurent merged commit 19aba1a into main Feb 10, 2025
9 checks passed
@ETLaurent ETLaurent deleted the pro-7053-document-versions-autopublish branch February 10, 2025 15:26
@ETLaurent ETLaurent restored the pro-7053-document-versions-autopublish branch February 10, 2025 15:27
@ETLaurent ETLaurent deleted the pro-7053-document-versions-autopublish branch February 10, 2025 15:29
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