Skip to content

add get-apos-doc-id and set-apos-doc-id tasks - #5136

Merged
haroun merged 13 commits into
mainfrom
pro-8356-match-slug-across-locales
Nov 20, 2025
Merged

haroun merged 13 commits into
mainfrom
pro-8356-match-slug-across-locales

Conversation

@haroun

@haroun haroun commented Nov 4, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Adds @apostrophecms/doc:get-apos-doc-id and @apostrophecms/doc:set-apos-doc-id tasks

What are the specific steps to test this change?

  1. Tests must be green
  2. You can try to manually run the tasks @apostrophecms/doc:get-apos-doc-id and @apostrophecms/doc:set-apos-doc-id and check the results

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 Nov 4, 2025
@linear

linear Bot commented Nov 4, 2025

Copy link
Copy Markdown

* main:
  fix tooltip prop (#5139)
  Radio icon buttons (#5121)
  Fix typos in some files (#5144)
  PRO-8571: fix the astro section template library bug introduced in astro 4.9.0 (#5140)
  bump nodemailer to v7 (#5138)
  Pro 8563 translation (#5134)
@haroun
haroun marked this pull request as ready for review November 11, 2025 18:23
@haroun
haroun requested a review from boutell November 11, 2025 18:24
Comment thread CHANGELOG.md Outdated
Comment thread modules/@apostrophecms/doc/index.js Outdated
Comment thread modules/@apostrophecms/doc/index.js Outdated
Comment thread modules/@apostrophecms/doc/index.js Outdated
@haroun
haroun requested a review from boutell November 12, 2025 09:32

// const req = self.apos.task.getReq({ mode: 'draft', locale });
const aposLocale = new RegExp(`^${self.apos.util.regExpQuote(locale)}:`);
const criteria = _id

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

One last thing, sorry... since the _id parameter has to be a full _id, which already contains the locale, there's no need to make locale mandatory or even part of the query when _id is present.

(Technically we don't need to make a query at all when _id is the argument, because _id already contains aposDocId, but I like the idea of making the query because it validates that the document actually does exist.)

* main:
  PRO-8708: bring back passing of the actual area options in the form developers expect to see them to custom insert menu item components (#5162)
  adds object of useful error when widget fails to render (#5141)
  add addMissingSchemaFields task (#5101)
  Pro 8360 box field (#5142)
  Pro 8671 fix localize modal (#5156)
  longPolling: false option (#5154)
  PRO-5472: file widget (#5126)
@haroun
haroun requested a review from boutell November 19, 2025 09:01
Comment thread CHANGELOG.md
@@ -7,6 +7,7 @@
* Add `@apostrophecms/migration:add-missing-schema-fields` task. This task does not run database migrations.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How did this creep into this PR? It's not hurting anything

@haroun
haroun merged commit 32194d2 into main Nov 20, 2025
12 checks passed
@haroun
haroun deleted the pro-8356-match-slug-across-locales branch November 20, 2025 14:35
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