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 6419 import pages #79

Merged
merged 43 commits into from
Sep 5, 2024
Merged

Pro 6419 import pages #79

merged 43 commits into from
Sep 5, 2024

Conversation

haroun
Copy link
Contributor

@haroun haroun commented Sep 2, 2024

Summary

Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"

What are the specific steps to test this change?

For example:

  1. Run the website and log in as an admin
  2. Open a piece manager modal and select several pieces
  3. Click the "Archive" button on the top left of the manager and confirm that it should proceed
  4. Check that all pieces have been archived properly

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:

@haroun haroun self-assigned this Sep 2, 2024
Copy link

linear bot commented Sep 2, 2024

package.json Outdated
@@ -18,14 +18,15 @@
"author": "Apostrophe Technologies",
"license": "UNLICENSED",
"devDependencies": {
"apostrophe": "github:apostrophecms/apostrophe",
"apostrophe": "github:apostrophecms/apostrophe#pro-6425-batch-operation-page",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

needs to be changed

* pro-6436-batch-operation-page:
  Fix import labels for singleton pieces
  Fix missing module action
  Changelog
  Add batch label for notificaitons
  Ensure unique types
  Add computed documents types
  Add export batch operation for pages
@haroun haroun changed the base branch from main to pro-6436-batch-operation-page September 4, 2024 15:36
@haroun haroun requested a review from myovchev September 4, 2024 15:46
@haroun haroun marked this pull request as ready for review September 4, 2024 15:46
@haroun haroun requested a review from boutell September 4, 2024 15:51
* pro-6436-batch-operation-page:
  Add replaces configuration for singleton import menu
Copy link
Contributor

@myovchev myovchev left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -303,23 +307,34 @@ module.exports = self => {
// If the parked/singleton doc is not found, it should be processed as a
// regular doc.
if (isSingleton || parkedId) {
// TODO: what about singleton with localized = false, we don't have aposMode
// TODO: do I need that for parked page?
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is a problem. aposMode in my knowledge always exists (no matter localized or not). We check for draft here because we want to trigger this (expensive) code only once per unique page (aposDocId).

})
: null;
if (replaceId) {
// NOTE: please update duplicatedDocs launder in overrideDuplicates
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover note?

Base automatically changed from pro-6436-batch-operation-page to main September 5, 2024 10:28
* main:
  PRO-6436: Add export batch operation for pages (#78)
* pro-6337:
  keep attachment name
  do not try to replace existing attachments, just merge crops and use recomputeAllDocReferences
* main:
  do not try to replace existing attachments, just merge crops and use recomputeAllDocReferences (#80)
@haroun haroun merged commit 35f4711 into main Sep 5, 2024
6 checks passed
@haroun haroun deleted the pro-6419-import-pages branch September 5, 2024 14:00
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.

4 participants