instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
apollographql__rover__2958
apollographql/rover
2,958
defect
02b30da631bbfc45db9472192afcc9ecda31a8db
25720240756e9a21f0a4e76af36f172b34db171c
Add tests for binstall/Installer
Adds unit and integration tests for `binstall` `Installer` objects.
diff --git a/Cargo.lock b/Cargo.lock index b0bd230833..7293de0e8a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -684,12 +684,18 @@ dependencies = [ "cc", "directories-next", "flate2", + "httpmock", + "predicates", "reqwest", "rover-std", + "rstest", + "sealed_test", "serial_test", + "speculoos", "tar", "t...
1
1
1
[{"id": "G0", "claim": "The `use camino::Utf8PathBuf;` import in installers/binstall/src/lib.rs should no longer be gated behind `#[cfg(not(windows))]`, since it is now used by the Windows test path this pull request adds.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apollographql__rover__3002
apollographql/rover
3,002
defect
362c5b7b8baa4baa1a1c2ae290af117600e3249b
e7aaed9f1831a8fc52def9f0ea3f7736c6574899
fix: pass raw router config to avoid env var double expansion
Fixes #2751 - Router config env var double expansion bug ...
diff --git a/src/command/dev/do_dev.rs b/src/command/dev/do_dev.rs index fb7cd39a57..0dd25bf4c4 100644 --- a/src/command/dev/do_dev.rs +++ b/src/command/dev/do_dev.rs @@ -21,7 +21,6 @@ use crate::{ router::{ binary::RunRouterBinaryError, config::{RouterAddress, RouterHost,...
3
2
0
[{"id": "G0", "claim": "The e2e test should use the same connection strategy as the existing tests/e2e/dev.rs helper (line 59) so that GraphQL assertions against the router are possible, instead of only polling the URL with a GET.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
apollographql__rover__832
apollographql/rover
832
defect
9915a96b94a2cf644582195f8338bf8e03b1b951
02c417e2bed8089259635b3c5ae6d6a7e08668a1
feat: updates harmonizer to v0.30.0
fixes #801 by updating harmonizer to v0.30.0, which is a breaking change for folks using `rover supergraph compose` with versions of `@apollo/gateway` < v0.39.0. This is reflected in the docs and will also be called out in our changelog. cc @StephenBarlow for docs wording/structure review cc @trevor-scheer for c...
diff --git a/Cargo.lock b/Cargo.lock index a8db2298d8..b735b270cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1387,9 +1387,9 @@ dependencies = [ [[package]] name = "harmonizer" -version = "0.27.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3ea09933b80c94df6c...
4
4
0
[{"id": "G0", "claim": "The new docs paragraph links the harmonizer package with an empty URL; fill in the crates.io link as suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The sentence 'For now, newer versions of Rover emit supergraph s...
null
apostrophecms__apostrophe__2924
apostrophecms/apostrophe
2,924
defect
692622ac7b745741a91a9bede6887311446c71f9
11724322a948174c9d1b95a3267e96344b4463ef
PRO-1183 "before" support for routes
Also middleware may be specified with a `url`, otherwise defaults to global as before. Notifications are no longer implemented as a wacky middleware function, they now have a clean `getAll` route that uses `before` to skip the performance impact of loading the global doc (which, in many projects, is too large for po...
diff --git a/CHANGELOG.md b/CHANGELOG.md index da73700cbf..16da89ed77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ * Contributors can submit drafts for review ("Propose Changes" versus "Publish Changes"). * Editors and admins can manage submitted drafts. * Support for virtual piece types, such as s...
1
1
1
[{"id": "G0", "claim": "Tests for the new \"before\" feature, including tests for adding middleware, are missing and should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apostrophecms__apostrophe__2986
apostrophecms/apostrophe
2,986
defect
3dccf3754df81e34a4a33fe01b40fa49087c375c
0a05d06ac55c614a4ecc6ba84b6d49655eff9419
PRO-1263 destroy draft content on archive (DOCS: note availability of "children" query builder in query string for page API)
* Archiving deletes draft and previous keeping only published * Archiving a page with modified content for itself or its descendants gives a warning it will be lost * Archiving a page with unpublished descendants gives a warning they will be deleted (if you choose to archive descendants) * The "children" query build...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f743cc85f6..d9a1d567af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Removes the `firstName` and `lastName` fields in user pieces. * The query parameters `apos-refresh`, `apos-edit`, `apos-mode` and `apos-locale` are now `aposRefresh`, `aposEdit`, `apo...
7
5
1
[{"id": "G0", "claim": "The `afterArchive` handler `markNeverPublishedAndRevertDraftToPublished` is hard to read and does too much (it also deletes the published and previous docs) - it should get a general name with the steps explained in comments, or be split into separate handlers.", "category": "maintainability", "...
null
apostrophecms__apostrophe__3301
apostrophecms/apostrophe
3,301
defect
65d2b0182e01d81fc0b8257f4523bd9575dc3520
21e40c3103a01cda3723372a46648a040aaae910
PRO-1906: localization links for the public
See the `static-i18n-demo` branch of `a3-demo` to try this out. Assigning to Bea because it touches on stuff I think he's well qualified to give feedback on.
diff --git a/CHANGELOG.md b/CHANGELOG.md index d876f00018..dc35ff28f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * An API route has been added to discover the locales in which a document exists. This provides basic information only for performance (it does not report `title` or `_url`). * The `@ap...
2
1
0
[{"id": "G0", "claim": "The CHANGELOG sentence describing the `available` property should use a plain parenthetical — \"(if true, the current context document is available in that locale)\" — instead of the confusing semicolon construction.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope...
null
apostrophecms__apostrophe__3418
apostrophecms/apostrophe
3,418
defect
1880907d6ff0ad71496c93b5f3d5cd265eb9ef9b
038eeed5cd3294a8db8beae5de06f740bb20e02b
PRO-1114 Updates cascade grouping to combine like-named groups' fields
I couldn't let this go anymore. Seems like a simple fix for a big quality of life improvement. Devs no longer need to know what the inherited fields in a group are.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 13e10c3e7b..991e4b2958 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,11 @@ ### Fixes -* The file size of uploaded media is visible again when selected in the editor, and media information such as upload date, dimensions and file size is now properly localize...
4
4
3
[{"id": "G0", "claim": "When spreading the new groups over the existing ones, the fields of a like-named new group should be combined using the new group's field array (as spread below) rather than the inherited group's array.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
apostrophecms__apostrophe__3549
apostrophecms/apostrophe
3,549
defect
bdafcb531c5be74570c5dae29f04be74d3f47f01
feb818108f9725f8f8bf63359e8c012f3d82be1d
Fix convert method
[PRO-2339](https://linear.app/apostrophecms/issue/PRO-2339/fixes-the-presentfieldsonly-option-of-the-convert-method) ## Purpose `fieldsPresent` method in doc-type was broken, looking for properties in strings and wasn't returning anything. ## How to test Check that when calling the method `self.convert` with th...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee1801be7..b2d3246e63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ * The `apos.util.attachmentUrl` method now works correctly. To facilitate that, `apos.uploadsUrl` is now populated browser-side at all times as the frontend logic originally expected. ...
5
5
2
[{"id": "G0", "claim": "The CHANGELOG entry should also mention that the `presentFieldsOnly` option to `convert` was broken, not just the `fieldsPresent` method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Filtering fields by truthiness of `inp...
null
apostrophecms__apostrophe__3585
apostrophecms/apostrophe
3,585
defect
84299d062c52d90b96230878ce7be8532e56ac07
617db61692f5286962b757dab5ce60b30cc71aa2
Adds a field option to put a field last in its group
We didn't have a way to put fields at the end of a widget's schema UI since we can't put them in their own group. This new field option, `last: true` puts the field at the end of its group (for any schema). This is especially useful for improving modules, which don't know the rest of the schema to do reordering. This a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 32d03dd511..6772ec5e8e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ * `slug` type fields can now have an empty string or `null` as their `def` value without the string `'none'` populating automatically. +### Adds + +* Adds a `last` option to fields. S...
1
1
1
[{"id": "G0", "claim": "The `last` option's use cases are unclear: the `fields.order` subproperty already covers ordering for ungrouped schemas and `group` imposes explicit order when used, so it is questionable when using `last` would be the right practice.", "category": "design", "verdict": "supported", "priority": "...
null
apostrophecms__apostrophe__3610
apostrophecms/apostrophe
3,610
defect
6d758b71d1139397f29dd8553bdc744a4dc5e5d1
69279e13b5d7bf0b6486a95999a721fcfc44ee89
PRO-2393 server side of PRO-2392, support for imposing custom login requirements
Did this as TDD (Test Driven Development for anyone peeping in), feel good about the correctness as a result.
diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c83985d4..9b182fea0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## UNRELEASED + +### Adds + +* Additional requirements and related UI may be imposed on native ApostropheCMS logins using the new `requirements` feature, which can be exten...
3
3
0
[{"id": "G0", "claim": "The new test file has an eslint error (a stray double blank line) that should be removed.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The conditional flow of the login route would be easier to follow if the logic were brok...
null
apostrophecms__apostrophe__3615
apostrophecms/apostrophe
3,615
defect
82206975482679b76ca2c135a16afe2fb3e64a4d
a959ced0ec6bdf755d54fcc5319a955c01690d22
PRO-2394 Custom login requirements (browser side)
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Implements the browser side of the tech design for custom login requirements (see PRO-2392). Contact with the real thing revealed the need for one design change, the addition of...
diff --git a/modules/@apostrophecms/attachment/index.js b/modules/@apostrophecms/attachment/index.js index 366795c950..d123a1d85d 100644 --- a/modules/@apostrophecms/attachment/index.js +++ b/modules/@apostrophecms/attachment/index.js @@ -1114,7 +1114,7 @@ module.exports = { await copyOut(uploadfsPath, t...
9
9
1
[{"id": "G0", "claim": "Failing to require package.json in getContext is logged and swallowed, and the reviewer asks whether it should not throw an error instead, questioning whether the package ever being missing would be okay.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existi...
null
apostrophecms__apostrophe__3625
apostrophecms/apostrophe
3,625
defect
6c545cb31af77b1cd7bfed3aaf9cab71ea4cec6b
32f3aa5d5029bddbf7104d1b2b8f192912eaa966
PRO-2442: bring back nestedModuleSubdirs feature
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Brings back nestedModuleSubdirs from 2.x, including the modules.js feature, with test coverage. ## What are the specific steps to test this change? See the unit tests. You...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 10769dc849..83b38b99e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,11 +8,15 @@ * UI strings that are not registered localization keys will now display properly when they contain a colon (`:`). These were previously interpreted as i18next namespace/key pairs and the...
1
1
0
[{"id": "G0", "claim": "The console.error call in the nestedModuleSubdirs catch block should use a template literal with `stripIndent` instead of concatenated strings.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apostrophecms__apostrophe__3644
apostrophecms/apostrophe
3,644
defect
8f81663a6bdfd70e914299d4aafbc74cc0ff2e8a
f71bc90118bc2fb36188071500867761ba257a74
Pro 2500 login requirements logic
[PRO-2500](https://linear.app/apostrophecms/issue/PRO-2500/login-requirements-must-handle-their-own-success-and-error-messages) ## Summary Verifies `afterPasswordVerified` requirements one by one when emitting done event, allows to manage errors ans success before to go to the next requirement. Stores and validat...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d1747285b9..a128a8166e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Adds * Additional requirements and related UI may be imposed on native ApostropheCMS logins using the new `requirements` feature, which can be extended in modules that `improve` the...
9
7
2
[{"id": "G0", "claim": "Fetching the incomplete token before updating it in requirementVerify may be unnecessary.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The requirement-verify route should throw an error, not return {}, when a requirement has no ve...
null
apostrophecms__apostrophe__3664
apostrophecms/apostrophe
3,664
defect
a80c3f89be5f549654df0963e5f2f5a12e70f411
9647122005b28d3c52e71b1d0ad6709a490d9a8c
Pro 2497 login throttle
[PRO-2497](https://linear.app/apostrophecms/issue/PRO-2497/enable-throttling-for-both-custom-login-requirements-and-regular-login) ## Summary Adds throttle system for initial login and for late requirements. Each requirement has its own cache namespace to be sure we are checking the right login phase attempts. W...
diff --git a/modules/@apostrophecms/i18n/i18n/en.json b/modules/@apostrophecms/i18n/i18n/en.json index fc5e8bb3af..ad9907b0a2 100644 --- a/modules/@apostrophecms/i18n/i18n/en.json +++ b/modules/@apostrophecms/i18n/i18n/en.json @@ -173,6 +173,8 @@ "loginPageBadCredentials": "Your credentials are incorrect, or there i...
3
3
1
[{"id": "G0", "claim": "Rename the misspelled identifiers in the new throttle code (\"loginAttempsNamespace\", \"checkLoginAttemps\" and their call sites) so they spell \"Attempts\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Drop the word \...
null
apostrophecms__apostrophe__3678
apostrophecms/apostrophe
3,678
defect
7c4aa7498b121b948ca19b7bec77195355dab022
69822a7160d7c13d9e95e78de3512873c2c243dd
add cache invalidate field
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> Part of [PRO-2576](https://linear.app/apostrophecms/issue/PRO-2576/caching-emit-etags-for-the-context-document-and-invalidate-them-based) ## Summary - Add a `cacheInvalidatedAt` field v...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index 5fa27bec66..8137fb479f 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -502,6 +502,23 @@ module.exports = { } return self.apos.migration.addSor...
8
6
2
[{"id": "G0", "claim": "The test/page-type.js approach of overriding `migration.add` in the test app just to record migration names is very sketchy.", "category": "testing", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the cache migration should exclude the `@apo...
null
apostrophecms__apostrophe__3679
apostrophecms/apostrophe
3,679
defect
7c4aa7498b121b948ca19b7bec77195355dab022
358e5d1bc6b23d81ae05d449b6f1e44dea04ce16
Pro 2506 Pro 2585 modules webpack section
[PRO-2506](https://linear.app/apostrophecms/issue/PRO-2506/implement-new-module-format-section-for-configuring-bundles-required) [PRO-2585](https://linear.app/apostrophecms/issue/PRO-2585/as-a-developer-i-can-contribute-custom-webpack-configuration-via-any) ## Summary * Accepts webpack configs from modules * Chec...
diff --git a/index.js b/index.js index b817420d3b..98509c9786 100644 --- a/index.js +++ b/index.js @@ -291,11 +291,11 @@ module.exports = async function(options) { ${self.localModules} must export an object containing configuration for Apostrophe modules. - + The file: - ...
2
2
2
[{"id": "G0", "claim": "mergeWebpackConfigs should walk the whole __meta.webpack inheritance chain and gather extensions from every entry, not only webpack[name], so that a base class and a subclass can contribute separate webpack extensions.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
apostrophecms__apostrophe__3683
apostrophecms/apostrophe
3,683
defect
9b612462e788b3a04ee281e0a253d03575bc7d1c
eb4f22fa10bfe7bcc0d4680171c68a2bccaaa93f
handle max-age cache-control
[PRO-2573/](https://linear.app/apostrophecms/issue/PRO-2573/caching-offer-a-simple-way-to-set-max-age-for-apostrophe-page-and-get) https://github.com/apostrophecms/apostrophe/pull/3674 was reverted, because the case when a user is logged-in and gets some logged-out content from cache was not handled. ## Summary ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d928e25eb..93833a0e36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * `data-apos-test=""` selectors for certain elements frequently selected in QA tests, such as `data-apos-test="adminBar"`. * `POST`ing a new child page with `_targetId: '_home'` now works...
8
4
2
[{"id": "G0", "claim": "The cookie name `loggedIn` should be namespaced (e.g. `aposLoggedIn`) to avoid confusion with other sites' cookies in dev.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The logged-in flag cookie should also be set server-side on ...
null
apostrophecms__apostrophe__3699
apostrophecms/apostrophe
3,699
defect
b85c915890cc5132060e0e06cefc9e621a7ed4af
bad1187a56a3feb6fbe9ee90e4d98324e4da64e0
Fixes bundles contribution
## Summary Fixes missing piece of the feature. Now multiple modules can contribute to the same bundle, they now export default functions. We reuse logic to write the import files. Tweak webpack config to create bundles with the right name (`-module-bundle`) without touching the src-build bundle. and without having to...
diff --git a/modules/@apostrophecms/asset/index.js b/modules/@apostrophecms/asset/index.js index 1b678d73bf..d310769a82 100644 --- a/modules/@apostrophecms/asset/index.js +++ b/modules/@apostrophecms/asset/index.js @@ -12,7 +12,8 @@ const { checkModulesWebpackConfig, getWebpackExtensions, fillExtraBundles, - ...
4
4
2
[{"id": "G0", "claim": "The body of writeImportFile should be indented one more level so it is clear that it is all inside the backtick string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The regexp in getComponentName would only match one hy...
null
apostrophecms__apostrophe__3708
apostrophecms/apostrophe
3,708
defect
e34522ab3002c40f1264cafe1e671e843f2570a3
39315a0f4265115924a8a62860b5c6c284d6391d
Pro 1974 crop image
[PRO-1974](https://linear.app/apostrophecms/issue/PRO-1974/as-a-user-i-can-crop-an-image-in-an-image-field) ## Summary * Starts implementing grouping for relationship (not the purpose of the ticket right, but I thought it was needed for focal points because of some designs having a focal point tab, I guess we wil...
diff --git a/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue b/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue index 142d373e2f..04d292288f 100644 --- a/modules/@apostrophecms/doc-type/ui/apos/components/AposDocEditor.vue +++ b/modules/@apostrophecms/doc-type/ui/apos/components...
4
4
4
[{"id": "G0", "claim": "The imgInfos width and height are those of the entire attachment, not of the existing crop, which is what the editor is actually trying to get at.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The input should always pass `i...
null
apostrophecms__apostrophe__3721
apostrophecms/apostrophe
3,721
defect
d313ab513b9b5a6fde5665794d79e6ed35909c20
542eb163477aea7ea49e7e46c9587c68cb5bf806
PRO-2502: Resolve _urls by default
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Resolve attachment owned `_urls` for API calls. Closes #3643 Closes PRO-2502 Related to https://github.com/apostrophecms/apostrophe/pull/3525 ## What are the specific s...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 529e135576..1ddd99f12b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ * Documentation of obsolete options has been removed. * Dead code relating to activating in-context widget editors have been removed. They are always active and have been for some tim...
1
1
0
[{"id": "G0", "claim": "The mocha tests added by this pull request should not use arrow functions; regular functions should be used instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
apostrophecms__apostrophe__3729
apostrophecms/apostrophe
3,729
defect
1938801fc881bee3efecf1db9bfbf9ae811fd73d
b3f337caea0c8ec532a259bb878e8008e3cd99df
PRO-2696: Add support for custom context operations
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Allow every module to add custom context operations to `AposDocContextMenu`. ## What are the specific steps to test this change? Use `apos.doc.addContextOperation()` to ad...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a610d97f9..49262bce56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * Handlers listening for `apostrophe:run` event are now able to send exit signal to the Apostrophe bootstrap routine. * Adds new event `@apostrophecms/doc:afterAllModesDeleted` fired af...
2
2
1
[{"id": "G0", "claim": "The method `_customAction` should be named `customAction`, since Apostrophe does not use `_` to mark private methods.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "`addContextOperation` should not namespace the operation...
null
apostrophecms__apostrophe__3752
apostrophecms/apostrophe
3,752
defect
0b2ccf4f47a28d46d1ba42d7ace0f69da3c3f322
b8434cfa5f2efe8668ea347fe9e23a04d90cc376
PRO-2778: Add webpack cache
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Enable the cache option for both the src and the apos webpack configurations. The benefit of this becomes obvious on the second startup (50%+ time spent, 5-10% CPU improvements ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4247b06641..07e69ac58e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## UNRELEASED +### Adds + +* Wepback cache for build performance in development and production mode. + ### Fixes * The admin UI now rebuilds properly in a development environment ...
5
5
1
[{"id": "G0", "claim": "The CHANGELOG entry should also mention the `@apostrophecms/asset:clear-cache` task for edge cases where it is not automatically detected that the cache needs to be cleared.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
apostrophecms__apostrophe__3754
apostrophecms/apostrophe
3,754
defect
e8e6a2be1a0adae26a3820bd774b47f5db5eeb74
2950af27814f5c9c6cc4ed7465be762bfda158b4
refactor unpublishing code and add ui button
[PRO-2806](https://linear.app/apostrophecms/issue/PRO-2806/as-a-developer-i-can-unpublish-a-piece-or-page) [PRO-2807](https://linear.app/apostrophecms/issue/PRO-2807/as-a-user-i-can-unpublish-a-piece-or-page-at-any-time) ## Summary Add `unpublish` method. Refactor existing un-publishing code by calling this m...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index 2c242e48ea..004e7cd168 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -219,6 +219,7 @@ module.exports = { // avoid overcomplicating parked pages ...
7
2
0
[{"id": "G0", "claim": "When the given doc is neither draft nor published, or no draft is found, the new unpublish method silently returns; the author asks whether it should throw some kind of warning instead.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apostrophecms__apostrophe__3779
apostrophecms/apostrophe
3,779
defect
c1a2cef3b05be80ebf1c4b7953bde18b41f56136
70ae5cced18e7a27b09dcce2ec3439aaf8ad3221
Fix symlinked node modules not being rebuilt
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Fix a Webpack cache issue leading to modules symlinked in `node_modules` not being rebuilt. ## What are the specific steps to test this change? Copy the asset module inde...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ed947c307..97b18ce0ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +* Fix a Webpack cache issue leading to modules symlinked in `node_modules` not being rebuilt. + ## 3.21.0 (2022-05-25) ### Adds diff --gi...
1
1
1
[{"id": "G0", "claim": "Module paths used to build the managedPaths regular expression should be escaped consistently and in the right way (S1 escaped only the first '/' via `m.replace('/', '\\/')`, leaving later slashes and regex-special characters in paths unescaped); boutell requested a change to use proper regular-...
null
apostrophecms__apostrophe__3781
apostrophecms/apostrophe
3,781
defect
b0b3035335e08161015548a7c61b31a9f91cb28a
50e50c32fd6c3c81949c4d9ca86497e63f840aea
Pro 2840 webpack extensions options
[PRO-2840](https://linear.app/apostrophecms/issue/PRO-2840/[michelin-p1]-ability-to-pass-options-to-a-webpack-extension) ## Summary Adds possibility to pass options from any module to a webpack extension. Feature has been discussed and tested directly with Jonathan. `extensionOptions` can be an object or a func...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ea8c18c4a..b769507518 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## UNRELEASED +### Adds + +* Possibility to pass options to webpack extensions from any module. + ### Fixes * Fixes login maximum attempts error message that wasn't showing the pl...
1
1
1
[{"id": "G0", "claim": "Please add a test confirming that a base class module X (e.g. a test-level override of @apostrophecms/piece-type) and a module Y that extends X can both add options to the same webpack extension.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apostrophecms__apostrophe__3797
apostrophecms/apostrophe
3,797
defect
985e6d1f6bf4a382c4ff4542293dce8df0eaa28a
7e9e9270f094c1979999aa8038b9b7e04ec41885
give preview access to a shared draft
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Grant access to the preview of a shared draft. To do this, provided that the URL query string contains the right key, we hide the admin UI by removing the user from `req`, we...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index 6f70d472bc..557d2dba15 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -1222,7 +1222,7 @@ module.exports = { } const { aposShareKey: _aposSha...
8
6
1
[{"id": "G0", "claim": "The share method should not destructure the key into a throwaway `_aposShareKey` variable purely to reuse it, since by convention `_` marks an unused variable.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new `trans...
null
apostrophecms__apostrophe__3822
apostrophecms/apostrophe
3,822
defect
e95eea658a343eec1aec260b00f47436f78cf5e7
eabb9c31c68b87e013f7ff343a2df866349b3962
handle private locales
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary If a locale has a `private: true` option, accessing to the content in that locale while logged out will result in a 404. ## What are the specific steps to test this change? ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 49c3d589fb..cde93fd8ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Adds + +* Handle `private: true` locale option in i18n module, preventing logged out users from accessing the content of a private locale. + ### Fixes * Fix mis...
2
1
0
[{"id": "G0", "claim": "The changelog entry should read 'preventing logged out users from accessing to the content of a private locale' rather than 'from accessing the content'.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "filterPrivateLocales sho...
null
apostrophecms__apostrophe__3918
apostrophecms/apostrophe
3,918
defect
d0e84220f77c55b2109138ac379ecf5d2473d970
9921a0c5e11fc5e3340d84b893eed15dde8e1773
QA errata for placeholders
* do not try to "convert" while aposPlaceholder is still in effect (it breaks required fields) * do not clone unnecessarily (performance) * always respect placeholders regardless of field values until aposPlaceholder is cleared See the `link-widget` branch of `testbed` which introduces a simple link widget that ex...
diff --git a/modules/@apostrophecms/widget-type/index.js b/modules/@apostrophecms/widget-type/index.js index 36a4c7f0e5..41b094d54b 100644 --- a/modules/@apostrophecms/widget-type/index.js +++ b/modules/@apostrophecms/widget-type/index.js @@ -164,7 +164,7 @@ module.exports = { ...self.getWidgetsBundles(`${wi...
2
1
0
[{"id": "G0", "claim": "The no-op change to test/modules/bundle-page/ui/src/extra.js (adding the 'bundle-page-watcher-test-30' expression) appears unrelated to the placeholder work, and the reviewer asks whether it is a related change.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": ...
null
apostrophecms__apostrophe__3920
apostrophecms/apostrophe
3,920
defect
1928a3f859dd08f36084679f48e293989afc2131
6b652eaa48eaf7e2acee3c9d781c813e4507d4fe
PRO-3254: Password reset
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Add reset password UI and back-end. Closes PRO-3254 ## What are the specific steps to test this change? Follow the PRO ticket acceptance criteria. ## What kind of c...
diff --git a/modules/@apostrophecms/i18n/i18n/en.json b/modules/@apostrophecms/i18n/i18n/en.json index a0a1e83048..a32e1fcfcf 100644 --- a/modules/@apostrophecms/i18n/i18n/en.json +++ b/modules/@apostrophecms/i18n/i18n/en.json @@ -181,6 +181,7 @@ "localizeAllRelated": "Localize all related documents and overwrite ex...
1
1
0
[{"id": "G0", "claim": "A comment explaining that the caught error is not reported to the browser for security reasons should be added above the try/catch so future readers don't wonder.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apostrophecms__apostrophe__4024
apostrophecms/apostrophe
4,024
defect
fd8d9d953c82b9741cda2e182e3e3898ca877abc
fba9a0eb33741e5b481a01f3af86a0638b52a076
Pro 3517 view permission
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Add support for `viewPermission` ## What are the specific steps to test this change? 1. `npm test` 2. Add `permission` or `viewPermission` to a widget schema and look for...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index 7bc3a04f80..6ba932a229 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -523,12 +523,14 @@ module.exports = { }, // Return a new schema containing o...
1
1
1
[{"id": "G0", "claim": "removeForbiddenFields strips fields from REST API responses whenever the user fails field.permission (an edit permission), so users can be denied fields they are allowed to see; only field.viewPermission should decide what is removed from API responses.", "category": "correctness", "verdict": "s...
null
apostrophecms__apostrophe__4029
apostrophecms/apostrophe
4,029
defect
be96481a9c47d1242861d7d87e01dedc20a8b743
bb3ce3e11c125bb12cd1ac5dbcdbb4bdde86dd28
Pro 3515 edit permission
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Add `editPermission` field ## What are the specific steps to test this change? 1. `npm test` 2. Create a piece type schema with some fields with `editPermission` as `{ ac...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index 7d3c5acd3c..b26fc0bf86 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -522,15 +522,17 @@ module.exports = { change.text = doc.title; }, /...
1
1
0
[{"id": "G0", "claim": "In `validateField` in the schema module, copy `field.permission` to `field.editPermission` when the latter does not exist, rather than double-testing the two property names everywhere, and then transition to `field.editPermission` everywhere else.", "category": "design", "verdict": "supported", ...
null
apostrophecms__apostrophe__4057
apostrophecms/apostrophe
4,057
defect
3f1a426ccf07302d52962eabaefd19a03030bd7e
4d09b9dc06cfd7d14d1775faef8261cd4f7b6e46
add readOnlyFields option
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Add `readOnlyFields` option, following the `showFields` logic. ## What are the specific steps to test this change? Add `readOnlyFields` to a boolean field `choices` option...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 702099279c..b1148a509b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## UNRELEASED + +### Adds + +* Add `readOnlyFields` option. Exactly like `showFields`, a boolean/select/checkboxes field in the document can control whether other fields ar...
1
1
0
[{"id": "G0", "claim": "Refactor self.isReadOnly (and likewise the frontend enableReadOnlyFields) so that it and the showFields method are short wrappers that pass a few property names to a shared method that implements the logic for both.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
apostrophecms__apostrophe__4063
apostrophecms/apostrophe
4,063
defect
3e095db6313c26dbc0dc26243d6a524a8f330e0e
43d2bbbc1558c2b79e8bbf1306c7da7e1ee458e1
Pro-3521-unique-inline-array
https://linear.app/apostrophecms/issue/PRO-3521/as-an-admin-i-cannot-add-two-separate-permissions-for-the-same-user-or In Apostrophe core, implement support for a new unique: true property in inline array subfields. Only one subfield may be set to unique: true. If an array item is edited such that its value fo...
diff --git a/modules/@apostrophecms/schema/lib/addFieldTypes.js b/modules/@apostrophecms/schema/lib/addFieldTypes.js index bf46d112ce..c9012eeaa7 100644 --- a/modules/@apostrophecms/schema/lib/addFieldTypes.js +++ b/modules/@apostrophecms/schema/lib/addFieldTypes.js @@ -752,6 +752,19 @@ module.exports = (self) => { ...
7
3
2
[{"id": "G0", "claim": "The duplicate check in the array converter could be simplified to `new Set(duplicates).size !== duplicates.length` instead of the filter-with-indexOf approach.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The nested level...
null
apostrophecms__apostrophe__4096
apostrophecms/apostrophe
4,096
defect
234780eb9e94ab30a37d14ce294765d7a94b1c19
db8b9f8cb288704d4bc86e506e4b209180e36d78
Login header based on env variable enhancement
https://linear.app/apostrophecms/issue/PRO-3660/staging-login-screens-for-a3-assembly-dashboards-are-labeled
diff --git a/modules/@apostrophecms/login/index.js b/modules/@apostrophecms/login/index.js index 77c3688c03..07d1ffdd67 100644 --- a/modules/@apostrophecms/login/index.js +++ b/modules/@apostrophecms/login/index.js @@ -382,8 +382,18 @@ module.exports = { } } } + + let labelEnv; +...
2
2
2
[{"id": "G0", "claim": "Apostrophe core should not reference the multisite module; instead the multisite module should inject an `envLabel` option into the `login` module and pass the `activeEnv` string itself (mapping `dev` to `development` and `prod` to `production`), without losing information by falling back to `st...
null
apostrophecms__apostrophe__4147
apostrophecms/apostrophe
4,147
defect
ef53587300336002954c03f87e5e686636a492e8
a966df249f484b2ca03697e1f1a24f22a4323f2f
Fields nested following
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Allow nested fields (array and object schema fields) to follow field values from the parent schema. In order to be done, the nested fields should use syntax `<fieldToFollow`,...
diff --git a/CHANGELOG.md b/CHANGELOG.md index f0d6b2cbe9..b1025d8874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## UNRELEASED +### Adds + +* Allow sub-schema fields (array and object) to follow parent schema fields using the newly introduced `following: '<parentField'` syntax, where the startin...
3
2
0
[{"id": "G0", "claim": "The new changelog entry should spell \"grandparent level\" without the space instead of \"grand parent level\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hoistFollowingFieldsToParent code treats `following` as poss...
null
apostrophecms__apostrophe__4148
apostrophecms/apostrophe
4,148
defect
9284f7bcc5b7f54a022361c59aca700d8865e1d0
e4783306864123d964186dbe4fcbaf9f6bb30e39
Pro 4116 fix per doc UI
[PRO-4116](https://linear.app/apostrophecms/issue/PRO-4116/manager-ui-is-broken-for-per-doc-permissions-requires-too-much) ## Summary Fixes `extendQueries` that wasn't working as expected. Adds few tests. ## What are the specific steps to test this change? * Try to override queries builders and methods in ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 596337f826..1dea6c6413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +* fix `extendQueries` to use super pattern for every functions in builders and methods (and override properties that are not functions). + ##...
3
3
1
[{"id": "G0", "claim": "Fix the changelog grammar: 'every functions' should read 'every function'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's finalize examples should be async and awaited so nobody copying the pattern gets a surpris...
null
apostrophecms__apostrophe__4225
apostrophecms/apostrophe
4,225
defect
2e20a09b518fbac968b991efb3274dbe4dc06fd5
0cad78ae59e75fd5d5ae092422be5f35be57a645
PRO-4529: i18n admin locales and user adminLocale field
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Adds support for UI language (static i18n), introducing `adminLocales` and `defaultAdminLocale` options. Those are independent from the `locales` options (no interception requir...
diff --git a/modules/@apostrophecms/i18n/i18n/en.json b/modules/@apostrophecms/i18n/i18n/en.json index 2435c43d4c..4e67cdedba 100644 --- a/modules/@apostrophecms/i18n/i18n/en.json +++ b/modules/@apostrophecms/i18n/i18n/en.json @@ -464,6 +464,8 @@ "type": "Type", "typeWithCount": "{{ type }} ({{ count }})", "un...
1
1
0
[{"id": "G0", "claim": "The local variable in getBrowserData that holds the admin locale should be named adminLocale (not uiLocale) for consistency with the rest of the admin-locale naming.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apostrophecms__apostrophe__4234
apostrophecms/apostrophe
4,234
defect
6aeada6b7e9777e4516f3ef376f09b54a5de0c94
376cc58505d822f2d049094db7613a6c8aa829b2
PRO-4543 settings module
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Add `@apostrophecms/settings` module. Implement settings configuration per logged in user (UI and backend). Although fully functional, the final UI will be done in a following...
diff --git a/defaults.js b/defaults.js index 35e7725066..46bae23d88 100644 --- a/defaults.js +++ b/defaults.js @@ -46,6 +46,7 @@ module.exports = { '@apostrophecms/video-widget': {}, '@apostrophecms/ui': {}, '@apostrophecms/user': {}, + '@apostrophecms/settings': {}, '@apostrophecms/image': {}, ...
2
2
1
[{"id": "G0", "claim": "The for-loop with an if in inferUserSchema should be replaced with `filter` when building the inferred user schema.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A check should also be added that a configured subform is ...
null
apostrophecms__apostrophe__4238
apostrophecms/apostrophe
4,238
defect
60bb8f1cf5abd4077c7371ffaf6b5f03192c25e0
36e0a12b000cd1cef91bfeae5fae6464b0324b61
PRO-4544 User settings group and password change
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary - Allow configurable "protected" subforms - Handle change password form - Implement subform groups (tabbed navigation) - Allow configurable reload and state restore after sub...
diff --git a/modules/@apostrophecms/i18n/i18n/en.json b/modules/@apostrophecms/i18n/i18n/en.json index c1549e8192..afb8f3857e 100644 --- a/modules/@apostrophecms/i18n/i18n/en.json +++ b/modules/@apostrophecms/i18n/i18n/en.json @@ -303,8 +303,13 @@ "pages": "Pages", "parentNotLocalized": "Localize the parent page ...
2
2
1
[{"id": "G0", "claim": "Rename the `protected` property and related identifiers (protectedTypes, protectedType) to `protection` (protectionTypes, protectionType) because the value now specifies a kind of protection, not just a boolean.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
apostrophecms__apostrophe__4269
apostrophecms/apostrophe
4,269
defect
51e1579af992897210463fc1f7bbe7ab61ad3f97
c59530795c831b768609fa61dc256e08b024f959
PRO-4685: Localization sometimes fails due to incorrect stored values for lastTargetId and lastPosition in the page tree
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Just get rid of these frequently inaccurate properties and infer them, which we can do with complete accuracy by looking at where the doc is now in the tree. Storing these prope...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bb830c6ee..ea83aaf0c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,8 @@ For backwards compatibility the two-argument syntax is still permitted. ### Fixes +* Resolved data integrity issue with certain page tree operations by inferring the best peer to pos...
5
4
0
[{"id": "G0", "claim": "The chained localizedTarget find call in doc-type/index.js could be reformatted with one method per line for readability.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The move and insert calls carrying the inferred last...
null
apostrophecms__apostrophe__4284
apostrophecms/apostrophe
4,284
defect
5eb82291e3a9bf7bf8d6b9fbb5fbb83f563310a3
83d588488d5c3cf54e04732a2f84c9af9a376ab7
support A3 projects with npm workspaces packages
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Add support for direct workspace dependencies ## What are the specific steps to test this change? You run the test `test/workspaces-project.js` or 1. Start from `a3-boi...
diff --git a/lib/moog-require.js b/lib/moog-require.js index 4c2a52026d..6535953eb3 100644 --- a/lib/moog-require.js +++ b/lib/moog-require.js @@ -7,6 +7,30 @@ const importFresh = require('import-fresh'); const resolveFrom = require('resolve-from'); const regExpQuote = require('regexp-quote'); +const getDependencie...
2
2
1
[{"id": "G0", "claim": "Define the helpers with `function` declarations and place them at the end of the file instead of front-loading arrow-function implementation detail that obscures the file's overall intent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "...
null
apostrophecms__apostrophe__4316
apostrophecms/apostrophe
4,316
defect
887d3ce773c75403b5f56be06f59ddea9f8c62a1
397f4edfdcd3d020c38617c175233590dc7db56d
only include type to projection if there are no exclusions
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Only add `type` to projection if there are no exclusions in the projection ## What are the specific steps to test this change? 1. `npm test` are green 2. Update `const va...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5239c16c18..7fd3268d5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## UNRELEASED + +### Fixes + +* Include `type` in the projection only if there are no exclusions in the projection. Needed to prevent `Cannot do +exclusion on field in incl...
2
2
1
[{"id": "G0", "claim": "Apostrophe 3.58.0's projection logic always adds `type` without checking whether the projection is inclusive or exclusive, so a projection containing falsy values (e.g. `fieldName: 0`) raises MongoDB's `Cannot do exclusion on field in inclusion projection` error; the code should check the projec...
null
apostrophecms__apostrophe__4337
apostrophecms/apostrophe
4,337
defect
87860e7a2f85395c847bb156ecc0a586d7317eeb
5894bafea794f5dba35290787ce260f860fa9d23
PRO-5092: fix bugs surrounding page tree
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary See changelog. ## What are the specific steps to test this change? * See tests * Also verify it resolves your specific issue on the HO project without the need for any wo...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c98af5112c..de9d27d2ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ * Add the possibility to add custom classes to notifications. Setting the `apos-notification--hidden` class will hide the notification, which can be useful when we only care about the ...
4
1
1
[{"id": "G0", "claim": "The new test should also assert `fetchedPage.aposMode === 'published'` and `draft.aposMode === 'draft'` to ensure the two fetched documents are actually the published and draft versions being compared.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
apostrophecms__apostrophe__4342
apostrophecms/apostrophe
4,342
defect
21214b37457e19c38bb6802cc1299926431d26aa
fa97224abefec16e468331c441eaa050dd32194b
Fix conditional fields
# Fix required fields not enforced when the field is not visible in Apostrophe 3.59.0 https://linear.app/apostrophecms/issue/PRO-5117/[regression]-a-required-field-is-still-enforced-when-the-field-is-not ## Summary Fix `if` and `requiredIf` fields inside array. ## What kind of change does this PR introduce?...
diff --git a/modules/@apostrophecms/schema/index.js b/modules/@apostrophecms/schema/index.js index 7da976943d..2933d5b0d6 100644 --- a/modules/@apostrophecms/schema/index.js +++ b/modules/@apostrophecms/schema/index.js @@ -498,10 +498,10 @@ module.exports = { } continue; } else if (...
2
2
1
[{"id": "G0", "claim": "A required field with a conditional `if` (e.g. an array field with `if: { dynamicChoices: false }`) is still enforced when the field is not visible, so saving fails with an 'invalid' error in Apostrophe 3.59.0.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_...
null
apostrophecms__apostrophe__4388
apostrophecms/apostrophe
4,388
defect
5d14737570c1dadaac331f0fa2d7280a1b9739c4
f3b4865da78cb147277cc3eceb900aeec3956fce
PRO-5341: Link HTML attributes for rich text widget
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary - `linkFields` top configuration property (cascade) can be configured on a project level to add additional schema for rich text Link extension. - `htmlAttribute: 'attribute-nam...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2edd7503ed..4667779985 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Adds support for `type` query parameter for page autocomplete. This allows to filter the results by page type. Example: `/api/v1/@apostrophecms/page?autocomplete=something&type=my-page-t...
6
6
2
[{"id": "G0", "claim": "htmlAttribute should hold the desired HTML attribute name rather than true, so attributes are emitted and read under the right name even when it differs from the schema field name (camelCase field names vs kebab-case HTML attributes), with old values picked up under the attribute name and mapped...
null
apostrophecms__apostrophe__4401
apostrophecms/apostrophe
4,401
defect
9276804ef7026931223d48caf525704dab4908e3
e5da6b4a5429a1b772b0055e3282e555792eeb28
relationship's withType property supports specific page types
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary We can now define relationships with a specific page type: ``` // eg: test: { label: 'Test', type: 'relationship', withType: 'default-page' }, ``` | Header | ...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index 5c24427f6b..b47b5a65e9 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -2626,6 +2626,7 @@ module.exports = { const perPage = query.get('perPage'...
8
2
0
[{"id": "G0", "claim": "Fix the overlap of the search list with the widget's focused controls by raising the search dropdown's z-index above the focused-controls level.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Note that composeFilters and composeCo...
null
apostrophecms__apostrophe__4408
apostrophecms/apostrophe
4,408
defect
7448dc88858be2b221c22879bca3cfb97b91fb19
12f52aebd0c244f27860427a54f91b38a2f88a1d
removes related reverse IDs when deleting a draft document
[PRO-5489](https://linear.app/apostrophecms/issue/PRO-5489/[advanced-permission-3]-deleting-draft-does-not-remove-per-doc) ## Summary * When deleting a draft document, we remove related reverse IDs of documents having a relation to the deleted one. * Updates docs.js tests to make them independants. * Adding two...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 74186097e1..7de8760440 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## UNRELEASED + +### Fixes + +* When deleting a draft document, we remove related reverse IDs of documents having a relation to the deleted one. + ## 3.62.0 (2024-01-25) ...
1
1
1
[{"id": "G0", "claim": "The new afterDelete handler should also cover `localized: false` types, since the delete backend API can delete unlocalized documents even though the UI cannot.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apostrophecms__apostrophe__4428
apostrophecms/apostrophe
4,428
defect
9efd29fcbba032552fad014cb546b3ed4bd51b43
67b7d3a6c9997c59d0298ecfdddbecbe69ab3266
Pro 5604: translation during localization backend
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Implement the backend methods, handlers and REST API. ## What are the specific steps to test this change? *For example:* > 1. Run the website and log in as an admin > 2...
diff --git a/modules/@apostrophecms/doc-type/index.js b/modules/@apostrophecms/doc-type/index.js index b3273db5d2..4db4414abb 100644 --- a/modules/@apostrophecms/doc-type/index.js +++ b/modules/@apostrophecms/doc-type/index.js @@ -1047,6 +1047,14 @@ module.exports = { locale: toLocale, mode: 'draf...
5
2
1
[{"id": "G0", "claim": "The afterLocalize event should pass the inserted or updated document (instead of, or in addition to, the original draft) so consumers can act on the new doc, for example to roll back the translation.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id":...
null
apostrophecms__apostrophe__4474
apostrophecms/apostrophe
4,474
defect
676d7883a849ef714970f1db94dc37ee7c90247c
a4463b7fe7f500e1e479811d6b7fc21141c727f2
Pro 5763 fix apos mode corrupted
[PRO-5763](https://linear.app/apostrophecms/issue/PRO-5763/fix-corrupted-aposmode-when-inserting) ## Summary * Fixes the docs `beforeInsert` handler (see ticket) * Adds tests * Adds migration to fix potential corrupted data. ## What are the specific steps to test this change? * Tests must be green * When i...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e1e13b1917..8107af517b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## UNRELEASED + +### Fixes + +* Updates the docs `beforeInsert` handler to avoid ending with different modes being set between `_id`, `aposLocale` and `aposMode`. +* Adds a...
2
2
1
[{"id": "G0", "claim": "The new changelog bullet should read \"with different\" instead of \"have different\" (i.e. fix the grammar: \"corrupted data have different modes\" -> \"corrupted data with different modes\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"...
null
apostrophecms__apostrophe__4510
apostrophecms/apostrophe
4,510
defect
20f75cb7c3875e33471530a1e62f2d8acdf0435e
257ca9920789488d665401b3a52695caeb6f2e16
Allow to disable page refresh
## Summary Allows to disable page refresh on content changed for page types when added to options. ## What kind of change does this PR introduce? - [ ] Bug fix - [X] New feature - [ ] Refactor - [ ] Documentation - [ ] Build-related changes - [ ] Other ## Make sure the PR fulfills these requirements: ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 118ecf3cea..019edd4123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## UNRELEASED + +### Adds + +* Allows to disable page refresh on content changed for page types. + ## 4.2.0 (2024-04-18) * Typing a `/` in the title field of a page no ...
1
1
1
[{"id": "G0", "claim": "The new refresh check reads apos.modules[this.context.type] but this.context does not always exist (the login page and similar project-level cases have none), and when there is no context it should be assumed ok to refresh.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
apostrophecms__apostrophe__4559
apostrophecms/apostrophe
4,559
defect
e8484d78e72530acc2d413a5cdb0dabd6d1c1524
49421879e1c45855e0ff5de753446b33aa34dd53
Pro 5938 read only default value
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Prevent read-only fields from being reverted to default value on `array`, `object` and `relationship` types ## What are the specific steps to test this change? 1. Run the ...
diff --git a/modules/@apostrophecms/schema/lib/addFieldTypes.js b/modules/@apostrophecms/schema/lib/addFieldTypes.js index 5198adb887..bcfe174e96 100644 --- a/modules/@apostrophecms/schema/lib/addFieldTypes.js +++ b/modules/@apostrophecms/schema/lib/addFieldTypes.js @@ -786,8 +786,12 @@ module.exports = (self) => { ...
1
1
0
[{"id": "G0", "claim": "The pull request has eslint issues that need fixing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apostrophecms__apostrophe__4584
apostrophecms/apostrophe
4,584
defect
9a00dae7a00b7d9a41b8999083e0465bbca7267e
f4c841f5528d30926eb20204492ce2b361018b6b
allow "shortcut: false" option to disable a shortcut
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Allow to disable a shortcut by setting the option `shortcut: false` ## What are the specific steps to test this change? 1. `npm test` must be green ## What kind of chan...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 231ec0598d..bb5df888d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## UNRELEASED + +### Adds + +* Allow to disable shortcut by setting the option `shortcut: false` + ## 4.4.1 (2024-06-12) ### Fixes diff --git a/modules/@apostrophecms/c...
1
1
1
[{"id": "G0", "claim": "The CHANGELOG will need one more round of attention because 4.4.3 just came out (the changelog entry needs updating in light of the new release).", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apostrophecms__apostrophe__4700
apostrophecms/apostrophe
4,700
defect
d022b26bd4af41e480886d8dcc55954dbada7d99
fbf51e8a4f8f0f6c3d896c03e2f9e5472c598997
PRO-6477 undhandled promise errors
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Cancel debouncers, guard against unhandled promise rejections and potential memory leaks. ## What are the specific steps to test this change? No 'canceled' promise rejecti...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d8fb7eb286..92138d4d96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * Registering duplicate icon is no longer breaking the build. * Fix widget focus state so that the in-context Add Content menu stays visible during animation * Fix UI of areas in schemas...
8
7
2
[{"id": "G0", "claim": "The debounced function should be instantiated directly in data() instead of being set to null there and assigned in created().", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Using the same name debouncedGetMedia for the scoped var...
null
apostrophecms__apostrophe__4745
apostrophecms/apostrophe
4,745
defect
8a0c84b491c06cd9f7339782c59b41a688b5072a
65a22705ca36191381058fe1786423b526c91b1e
PRO-6660: modules order
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Modules can now have a `before: "module-name"` property in their configuration to run (initialization) before another module. That works only for target modules that are initia...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c180073ef6..fdebaeb637 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,12 @@ ## UNRELEASED -### Fixes +### Adds +* Modules can now have a `before: "module-name"` property in their configuration to run (initialization) before another module. That works only f...
2
2
1
[{"id": "G0", "claim": "The changelog's statement that the `before` property works only for initializable target modules should be dropped (or reworded) rather than sounding like a defect, since the concept isn't relevant for abstract base-class modules.", "category": "documentation", "verdict": "supported", "priority"...
null
apostrophecms__apostrophe__4748
apostrophecms/apostrophe
4,748
defect
8a0c84b491c06cd9f7339782c59b41a688b5072a
426e26638e76db7cc5e6eb37c203749ce66b5745
handle viewport values for breakpoint preview
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Use a custom `postcss` plugin to duplicate declarations containing `vh` and `vw` (and only those) and change the units to container query compatibles ones (`cqh`, `cqw`) into a ...
diff --git a/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js b/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js index b07df5680c..87e0a72bfc 100644 --- a/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js +++ b/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js @@ -1,4 +...
3
3
1
[{"id": "G0", "claim": "The viewport-units plugin should only be added to the postcss plugin list when `apos.asset.options.breakpointPreviewMode?.enable === true`, in both the admin (apos) and src webpack SCSS configs.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id":...
null
apostrophecms__apostrophe__4777
apostrophecms/apostrophe
4,777
defect
3bd10b844e54b7c5284f9c73010e9413b69997ac
b24a15b4861e4a42f72b0055801699e8777f3e1f
PRO-6646 inject conditions
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary > NOTE: This is a PR against a feature branch. Allows `when` inject condition in both registration and inject component parameters. Adds registration `bundler` condition. Add...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d86c0ec7..fa087513cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ with dynamic choices in this way. * Adds possibility to have two icons in a button. * Adds a `isActive` state to context menu items. Also adds possibility to add icons to context menu i...
4
4
0
[{"id": "G0", "claim": "The CHANGELOG entry starts with the typo 'Addjs' and should read 'Adds'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment above getInjectComponents ends with 'and returns' without saying what the method returns, a...
null
apostrophecms__apostrophe__4789
apostrophecms/apostrophe
4,789
defect
8614b67fc90ce09a10d163b57e863b3dd3ece7d5
913fd5a568a213fbd394db84b8c47f3c7b659223
Pro 6694 breakpoint preview vite ready
[PRO-6694](https://linear.app/apostrophecms/issue/PRO-6694/breakpoint-preview-css-loader-logic-should-be-vite-ready) ## Summary Uses new externalize postcss plugin instead of having one postcss plugin and one webpack loader. Cypress tests running [HERE](https://github.com/apostrophecms/testbed/actions/runs/117...
diff --git a/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js b/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js index 49cc200a3c..e1edae34d5 100644 --- a/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js +++ b/modules/@apostrophecms/asset/lib/webpack/apos/webpack.scss.js @@ -1,34 ...
3
3
2
[{"id": "G0", "claim": "The new postcssViewportToContainerToggle plugin should be passed the transform and debug options that the removed loader used to receive.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The breakpoint preview postcss handling ...
null
apostrophecms__apostrophe__4856
apostrophecms/apostrophe
4,856
defect
92114c9289dec8525187d267179831bbcd5bf7e4
84ed153b3768a38c176bf414bc7366ffd54a3c66
Pro 6468 big upload import export
[PRO-6468](https://linear.app/apostrophecms/issue/PRO-6468/[importexport]-utilize-the-new-bigupload-feature-to-accommodate) ## Summary * Stores and passes to finale route the file types (needed for import-export). * Moves client function to allow bundling to work properly (works in dev mode too). Frontend code sho...
diff --git a/modules/@apostrophecms/http/lib/big-upload-middleware.js b/modules/@apostrophecms/http/lib/big-upload-middleware.js index b7a9a6a499..f4ee2c4835 100644 --- a/modules/@apostrophecms/http/lib/big-upload-middleware.js +++ b/modules/@apostrophecms/http/lib/big-upload-middleware.js @@ -72,34 +72,37 @@ module.ex...
1
1
0
[{"id": "G0", "claim": "Please document the feature addition (the `type` availability for files uploaded by big-upload) in the changelog.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apostrophecms__apostrophe__4872
apostrophecms/apostrophe
4,872
defect
74737941c3a47bac98a474bf41f9a837d31bdfcc
0e386f4000863df8b6c06fd4d08a68810967bb33
Implemented API endpoint to return current users info
Implemented GET /api/v1/@apostrophecms/login/whoami route such that it returns the details of the current user.
diff --git a/modules/@apostrophecms/login/index.js b/modules/@apostrophecms/login/index.js index a59c952a17..c84f906d6d 100644 --- a/modules/@apostrophecms/login/index.js +++ b/modules/@apostrophecms/login/index.js @@ -67,7 +67,9 @@ module.exports = { allowedAttempts: 3, perMinutes: 1, lockoutMinut...
3
3
1
[{"id": "G0", "claim": "Update the CHANGELOG to reflect the changes being added, in the `## UNRELEASED` section.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add tests to show correct functionality of the new endpoint.", "category": "testing", "...
null
apostrophecms__apostrophe__4893
apostrophecms/apostrophe
4,893
defect
b90abcf8e1ca0c7acdbe87ac0a1aaedcca23eb84
197d705630ca4665f8790c6bb3c12635981e2b15
PRO-7380 PRO-7483 Widget live preview
See changelog. For the most interesting results, try the `preview-widgets` branch of `gt-samples` (the apostrophe project is in the `backend` subdirectory). In particular, in the "Box" tab try setting "width" to "custom percentage" and then dragging the slider. Not available for rich text for now.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 77321d6c9e..034932d09c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## UNRELEASED +### Adds + +* To display a live preview on the page as changes are made to widgets, set the `preview: true` option on any widget module. To turn it on for all widgets, ...
6
3
2
[{"id": "G0", "claim": "The Mocha test suite is red and must be greened before merge.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pull request has no associated ticket and the steps to test it are unclear, so a ticket and testing steps should be ...
null
apostrophecms__apostrophe__4994
apostrophecms/apostrophe
4,994
defect
b87d4cf4c64007fe66dd09db70ad7d98b3e7b514
bda0f77ea53523e9ed27525c9538aa2eea93319b
Pro 7798 fix ordering
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary *Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"* This PR implements better m...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f144c2d05..95af29c2cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ * Implemented GET /api/v1/@apostrophecms/login/whoami route such that it returns the details of the currently logged in user; added the route to the login module. * Adds keyboard shortc...
1
1
0
[{"id": "G0", "claim": "The new ordering code should not use an `else` block; it should `return` at the end of the preceding `if` block instead, for readability.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apostrophecms__apostrophe__5101
apostrophecms/apostrophe
5,101
defect
a4cce8b0aa942ac07f1730ed4281d873635527f2
f33d52f2b396f654a0d8d6b2f74ab4d0d7ba0fbb
add addMissingSchemaFields task
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Adds `@apostrophecms/migration:add-missing-schema-fields` task ## What are the specific steps to test this change? 1. Go to the [Checks](https://github.com/apostrophecms/a...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 966bb4e88b..f08510db5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ ## UNRELEASED +### Add + +* Add `@apostrophecms/migration:add-missing-schema-fields` task. This task does not run database migrations. + +### Changes + +### Fixes + +## UNRELEASED + ...
1
1
1
[{"id": "G0", "claim": "The add-missing-schema-fields task should also skip the migration-requirements work (the insertIfMissing / park / replicate block) that runs after the `before` emit, even though the task will then have to explicitly call addMissingSchemaFields itself.", "category": "design", "verdict": "supporte...
null
apostrophecms__apostrophe__5111
apostrophecms/apostrophe
5,111
defect
b1d7bf79a2335cfde38b49cb8b659bd1c2c1fc19
c1f79eeb849df3b5b3e4dd37f0907eb9f2221d6f
moves widget operations to backend
## Summary Pretty simple solution, no big refacto. Still moves all widget operations config backend (with specific frontend native logic). Removes the need for `skipOperations`. A bit easier to read since all operations come from the same config (less vue code). ## What are the specific steps to test this chang...
diff --git a/modules/@apostrophecms/area/ui/apos/components/AposAreaWidget.vue b/modules/@apostrophecms/area/ui/apos/components/AposAreaWidget.vue index 501792fae8..0d08a0f9ae 100644 --- a/modules/@apostrophecms/area/ui/apos/components/AposAreaWidget.vue +++ b/modules/@apostrophecms/area/ui/apos/components/AposAreaWidg...
2
2
1
[{"id": "G0", "claim": "Primary (first-level) widget operations carry a label that is never used, so the label config is useless there and should not be required.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The native (nativeAction) operation...
null
apostrophecms__apostrophe__5205
apostrophecms/apostrophe
5,205
defect
a1f4b379ae9cb0b284d84dc6b71ecd6bedc5b45b
870450fabb868fd1c4f74f9d54fe076433549f81
PRO-8598: Validate and extend presets
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary - Validate and extend presets, - Fix standard preset schema and options - Fix widget styles group merge
diff --git a/packages/apostrophe/modules/@apostrophecms/styles/index.js b/packages/apostrophe/modules/@apostrophecms/styles/index.js index 5d44071cc4..938f1923fc 100644 --- a/packages/apostrophe/modules/@apostrophecms/styles/index.js +++ b/packages/apostrophe/modules/@apostrophecms/styles/index.js @@ -21,7 +21,10 @@ mo...
8
5
1
[{"id": "G0", "claim": "The `// '` comment added to the styles module options looks like a forgotten leftover that should not be there.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new borderColor/shadowColor options should live inside a `...
null
apostrophecms__apostrophe__5232
apostrophecms/apostrophe
5,232
defect
3a39300d8c79e28099d56aa71ce8a6bc31b202f3
4fe6577de984b65d8b600f53a44f7672c13604bb
Pro 8590 layout style editing
https://linear.app/apostrophecms/issue/PRO-8602/support-for-style-editing-of-layout-widgets https://linear.app/apostrophecms/issue/PRO-8608/applying-widget-level-styles-to-the-rich-text-editor-when-editing ## Summary Style edition for layou-widget and rich-text (live preview not perfectly work yet). ## What a...
diff --git a/packages/apostrophe/modules/@apostrophecms/layout-widget/ui/apos/components/AposAreaLayoutEditor.vue b/packages/apostrophe/modules/@apostrophecms/layout-widget/ui/apos/components/AposAreaLayoutEditor.vue index fbf49c8c4c..98eb9bc9e6 100644 --- a/packages/apostrophe/modules/@apostrophecms/layout-widget/ui/a...
2
2
1
[{"id": "G1", "claim": "The reviewer asks whether the current style value and the old style value computed in the modelValue watcher have different shapes.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "Remove fieldsGroupStyle from the rich text get...
null
apostrophecms__apostrophe__5337
apostrophecms/apostrophe
5,337
defect
519dd10bbb2d95dc636fd16ab7dad6f715196ef7
2e70a32ead49c6d05dd9d453823e73acdf69c043
Port/sanitize html community contrib
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary *Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"* This PR brings community-co...
diff --git a/.changeset/fluffy-otters-care.md b/.changeset/fluffy-otters-care.md new file mode 100644 index 0000000000..9bbed8773a --- /dev/null +++ b/.changeset/fluffy-otters-care.md @@ -0,0 +1,5 @@ +--- +"sanitize-html": patch +--- + +Upgrade `htmlparser2` from 8.x to 10.1.0. This improves security by correctly decod...
1
1
0
[{"id": "G0", "claim": "Fix the long-line eslint warning in the existing disallowedTagsMode escape branch (packages/sanitize-html/index.js around line 679), even though it is not related to the change itself, because leaving it would require another re-review.", "category": "style", "verdict": "supported", "priority": ...
null
apostrophecms__apostrophe__5352
apostrophecms/apostrophe
5,352
defect
b2e29d94216c1eb2f86d0808b65280f140d861ce
29883931fb48d6bbe9941390721311af09d59396
PRO-6706: optional pretty URLs for PDFs (files, not images)
A simple and effective implementation. Optional because there is a performance tradeoff but this is a reasonably performant solution. I don't think we should implement it for images, because it would hurt performance more significantly, and RA agrees that's not important. People care *much* more for PDFs because they a...
diff --git a/.changeset/kind-poets-cough.md b/.changeset/kind-poets-cough.md new file mode 100644 index 0000000000..9ed86802b9 --- /dev/null +++ b/.changeset/kind-poets-cough.md @@ -0,0 +1,5 @@ +--- +"apostrophe": minor +--- + +Support for the new prettyUrls: true option for @apostrophecms/file, which enables "pretty U...
3
1
1
[{"id": "G0", "claim": "Building the pretty URL from `req.baseUrl` ignores the framework's single source of truth (prefix, static base URL, etc.) and will blow up static builds; the `self.apos.url.getBaseUrl(req, { prefix: true })` helper should be used instead.", "category": "correctness", "verdict": "supported", "pri...
null
apostrophecms__apostrophe__5356
apostrophecms/apostrophe
5,356
defect
2bdfd01f21b49819259ad088ef7934f02ed11507
9d4e2ed347bfe6f7d425de4b6da7a05711c7c06e
PRO-9314: Add support for files pretty URLs in static builds
<!-- Please don't delete this template --> <!-- PULL REQUEST TEMPLATE --> <!-- (Update "[ ]" to "[x]" to check a box) --> ## Summary Added support for pretty URL file attachments in the static build metadata pipeline. When `@apostrophecms/file` has `options.prettyUrls` enabled, the getAllUrlMetadata API now annotate...
diff --git a/.changeset/bold-singers-pay.md b/.changeset/bold-singers-pay.md new file mode 100644 index 0000000000..9370605289 --- /dev/null +++ b/.changeset/bold-singers-pay.md @@ -0,0 +1,5 @@ +--- +"apostrophe": minor +--- + +Added support for pretty URL file attachments in the static build metadata pipeline. When `@...
2
1
1
[{"id": "G0", "claim": "The `attachmentFilter` option's `prettyOnly` distinction does not make sense because not copying the pretty URL files guarantees failure — the option is effectively boolean and pretty URL files should still be copied when it is off ('false').", "category": "design", "verdict": "supported", "prio...
null
apotdevin__thunderhub__671
apotdevin/thunderhub
671
defect
581b3014a57fb21cf0ab8012eb09d40f64838b5f
5252eba241784ed4af506efa638c4e9cc4cf33cf
feat: add taproot asset invoice creation
## Summary - Adds `addAssetInvoice` method to `TapdNodeService` for creating Lightning invoices denominated in Taproot Assets - Adds `addTapAssetInvoice` GraphQL mutation with support for asset ID or group key, memo, expiry, and optional peer routing - Adds `TapAssetInvoiceResponse` GraphQL type returning payment reque...
diff --git a/schema.gql b/schema.gql index d6ca4d637..11f382847 100644 --- a/schema.gql +++ b/schema.gql @@ -389,6 +389,7 @@ type MessageType { type Mutation { addPeer(isTemporary: Boolean, publicKey: String, socket: String, url: String): Boolean! + addTapAssetInvoice(assetAmount: Int!, assetId: String, expiry: ...
2
2
0
[{"id": "G0", "claim": "The mutation input `assetAmount` is declared as `Int` while `TapAssetInvoiceResponse.assetAmount` is a string, so the input and output types are inconsistent.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mutation should...
null
appbaseio__reactivesearch__2021
appbaseio/reactivesearch
2,021
defect
9752472fdbc0aa1da12f42a0ba9ea7524bad16c9
10c410c685244e89ae752606322fde6d57bd0d94
Feat/error boundary
- Adds a new `ErrorBoundary` component to catch network request errors as well as runtime errors declaratively. - [Loom preview for testing error boundary](https://www.loom.com/share/8e8b6da45cbb4bf3aebab79cfae99415) - [reactivecore](https://github.com/appbaseio/reactivecore/pull/128) - [Storybook PR](https://github...
diff --git a/packages/playground b/packages/playground index 901d1029f4..3d3bf6d529 160000 --- a/packages/playground +++ b/packages/playground @@ -1 +1 @@ -Subproject commit 901d1029f428a5e9810692378cdd8183eb598384 +Subproject commit 3d3bf6d5298949e4e63ef127f41fee85d36fd601 diff --git a/packages/reactivecore b/packages...
5
4
2
[{"id": "G0", "claim": "In the ErrorBoundary example the boundary should be used just after ReactiveBase (instead of nested inside the layout columns) so it can catch errors for the whole tree.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "ErrorBou...
null
appbaseio__reactivesearch__2027
appbaseio/reactivesearch
2,027
defect
9752472fdbc0aa1da12f42a0ba9ea7524bad16c9
f05c61b7fe88eec31e1293b66a51773628087537
Feat/tab data list
Add a new component called `TabDataList` which uses `SingleDataList` under the hood but renders as tabs instead of radio buttons. [Notion card](https://www.notion.so/appbase/Main-Facet-Horizontal-Tab-Display-969f1ccecafd411ca520445ea83e4add) [Loom preview](https://www.loom.com/share/545cf83a51644662ae5395b80a8e89...
diff --git a/packages/playground b/packages/playground index 901d1029f4..744682fa38 160000 --- a/packages/playground +++ b/packages/playground @@ -1 +1 @@ -Subproject commit 901d1029f428a5e9810692378cdd8183eb598384 +Subproject commit 744682fa3808e9349a92e0634cffde72310637be diff --git a/packages/reactivecore b/packages...
1
1
0
[{"id": "G0", "claim": "The example's TabDataList title, currently \"SingleDataList\" (a leftover copy from SingleDataList), should be changed to \"Filter by Topics\".", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appbaseio__searchbox__6
appbaseio/searchbox
6
defect
4320d8af92a49e27e0fa414a99d61e357b025f31
2b1fbe35db7f434f3358364a10a342db3c94df61
increase coverage for test cases
- 96% coverage for utils.js - increase coverage for index.js
diff --git a/packages/searchbase/.babelrc.js b/packages/searchbase/.babelrc.js new file mode 100644 index 00000000..955090fd --- /dev/null +++ b/packages/searchbase/.babelrc.js @@ -0,0 +1,15 @@ +module.exports = { + //for enabling es6 syntax in test + presets: [ + [ + '@babel/preset-env', + { + ta...
2
2
0
[{"id": "G0", "claim": "The test 'set [value, results, suggestions]' bundles several unrelated assertions into one test, so Jest stops after the first failure and the rest never run; it should be split into separate tests.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id":...
null
appium__appium-xcuitest-driver__2716
appium/appium-xcuitest-driver
2,716
defect
2ced29ff5eeaa5350979a0f194280fd4e987058b
80a7014eb373a858a3748dadb8ea7ccf942877cf
feat: use `isIos18OrNewer` to check version instead of ios-device util
Related to - https://github.com/appium/appium-xcuitest-driver/pull/2715#issuecomment-3772883449
diff --git a/lib/device/real-device-management.ts b/lib/device/real-device-management.ts index 95a4c516ff..0fa09b326f 100644 --- a/lib/device/real-device-management.ts +++ b/lib/device/real-device-management.ts @@ -7,8 +7,9 @@ import {buildSafariPreferences, SAFARI_BUNDLE_ID} from '../app-utils'; import {log as defaul...
1
1
1
[{"id": "G0", "claim": "The RealDevice constructor's new `driverOpts` parameter should be typed `XCUITestDriverOpts` instead of `any` and made a required second parameter (with the driver.ts call site and the unit tests updated to match).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro...
null
appium__appium__18396
appium/appium
18,396
defect
0c52b50e6595a16287d0bb71960fb2e08278de6f
acff8dc6040c038057a31b0e1915821ae2bc5828
plugin command fixes
- Renamed classes `ExtensionCommand`, `DriverCommand` and `PluginCommand` in `appium` to `ExtensionCliCommand`, `DriverCliCommand` and `PluginCliCommand`, respectively to avoid naming conflicts and confusion w/ `DriverCommand` and `PluginCommand` from `@appium/types`, which have no relation. - Updated the above two...
diff --git a/package-lock.json b/package-lock.json index 737d6a4f605b..10db3573798d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,6 +64,7 @@ "sync-monorepo-packages": "1.0.2", "through2": "4.0.2", "ts-node": "10.9.1", + "tsd": "0.28.0", "typedoc": "0.23.28", ...
1
1
1
[{"id": "G0", "claim": "The JSDoc example for the new utility type in packages/types/lib/plugin.ts references a type `OverrideDriverCommand` that is not defined anywhere; it should presumably be the actually exported `DriverCommandToPluginCommand`.", "category": "documentation", "verdict": "supported", "priority": "P1"...
null
appium__appium__18479
appium/appium
18,479
defect
39b7cd50842ddee843d4ba0c6f561e57cef39c7d
fbf7b1d1827ad506d2aa403a37206942f93f2722
feat(appium): make "ls" alias of "list"
This makes `ls` an alias of `list`; e.g., `appium driver ls` While doing this I noticed a limitation of `argparser`, which is that an option (not a command) can only have a single (1) alias. I have noted this behavior in a comment. I also notice that we need to rewrite `ls` to be `list` ourselves, or we will hav...
diff --git a/packages/appium/lib/cli/args.js b/packages/appium/lib/cli/args.js index c3e7ab733db..db12c13748d 100644 --- a/packages/appium/lib/cli/args.js +++ b/packages/appium/lib/cli/args.js @@ -294,5 +294,5 @@ export {getServerArgs, getExtensionArgs}; /** * A tuple of argument aliases and argument options - * @...
2
1
1
[{"id": "G0", "claim": "The reviewer asks for an explanation of the 'magic' in the new flagsOrNames-length-2 branch in parser.js that dispatches add_argument calls by arity.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The lint check is unhapp...
null
appium__appium__21721
appium/appium
21,721
defect
f01b6fb0545cd798e131bda8dacfe8413d8b1fd6
687b98c76f715d1957f2d75ea03e093ef043406e
test(docutils): Add e2e tests
Addresses https://github.com/appium/appium/issues/18658 Also my friend cursor sends best kudos to @boneskull 👋
diff --git a/packages/docutils/package.json b/packages/docutils/package.json index bfbf2395ffb..18638461d3d 100644 --- a/packages/docutils/package.json +++ b/packages/docutils/package.json @@ -42,9 +42,9 @@ ], "scripts": { "test": "npm run test:unit", - "test:e2e": "echo \"No e2e tests for this package\""...
1
1
1
[{"id": "G0", "claim": "The showHelp fallback might not work because showHelp writes to stderr by default while the test only captures stdout.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
appium__appium__22174
appium/appium
22,174
defect
8e68b3e2c9c7b6238e0ffc241adbd4d9991ead7a
851b628f1ea37a6a502be0e7f26b26c051cc5d5c
fix(base-driver): lint warnings
Continuation of https://github.com/appium/appium/pull/22171
diff --git a/packages/base-driver/lib/basedriver/capabilities.ts b/packages/base-driver/lib/basedriver/capabilities.ts index fb00f1b7394..04a7640b249 100644 --- a/packages/base-driver/lib/basedriver/capabilities.ts +++ b/packages/base-driver/lib/basedriver/capabilities.ts @@ -135,6 +135,10 @@ export const STANDARD_CAPS...
2
1
0
[{"id": "G0", "claim": "Intentionally ignoring fs.rimraf's returned Promise via void means a rejection would surface as an unhandled rejection and could potentially crash the process depending on Node settings; handle the rejection (e.g. attach a .catch to log) or use a synchronous removal method in this dispose callba...
null
appium__appium__22175
appium/appium
22,175
defect
8e68b3e2c9c7b6238e0ffc241adbd4d9991ead7a
a34bf9b1356a1f129c0df7e3d549bb235952d863
fix(support): lint warnings
Continuation of https://github.com/appium/appium/pull/22171
diff --git a/packages/support/lib/console.ts b/packages/support/lib/console.ts index b8998529084..e963e5b4fca 100644 --- a/packages/support/lib/console.ts +++ b/packages/support/lib/console.ts @@ -8,9 +8,6 @@ import {Writable} from 'node:stream'; import type {InspectOptions} from 'node:util'; import type {JsonValue} ...
1
1
0
[{"id": "G0", "claim": "In `toArchive()`, the `return` before `Promise.all([archive.finalize(), outFinished]).then(...).catch(...)` inside the `new Promise` executor is misleading because the executor's return value is ignored by JS; consider removing the `return` (or refactoring away the manual `new Promise`) to make ...
null
appium__python-client__1024
appium/python-client
1,024
defect
bb8d50920f6dc417f38f7ee5fd74a783e9558b72
b62cc394f5a21f0f8917c8f0255e97e86416ab1c
test: cleanup functional tests and move to unit test to CI stable
Part of https://github.com/appium/python-client/issues/1023 . It looks like... the amount of change (including test fixes) will gain, so let me split PRs. - I have removed some tests/files in functional directory and add/update these unit test because they test the same thing as this python client. This python cli...
diff --git a/.github/workflows/functional-test.yml b/.github/workflows/functional-test.yml index b7221caa8..95f184792 100644 --- a/.github/workflows/functional-test.yml +++ b/.github/workflows/functional-test.yml @@ -105,7 +105,7 @@ jobs: name: func_test_android6 - target: test/functional/androi...
2
1
0
[{"id": "G0", "claim": "The pre-commit hook configuration should be updated, since its pinned tool versions are outdated and made the linked CI run fail.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The old app-test assertion `assert {'app':...
null
appium__python-client__1070
appium/python-client
1,070
defect
68ceca73ac83cef40ec90bdbb73305e384073983
9569035b3e6da9f1ca7a67a2a1e7be006213b2d0
feat: define AppiumClientConfig
BREAKING CHANGE: Some of WebDriver.Remote constructor arguments were moved to AppiumClientConfig: - direct_connection - keep_alive - strict_ssl https://github.com/SeleniumHQ/selenium/blob/trunk/py/selenium/webdriver/remote/client_config.py
diff --git a/README.md b/README.md index aeba4c150..c2d11016d 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,34 @@ For example, some changes in the Selenium binding could break the Appium client. > to keep compatible version combinations. +### Quick migration guide from v4 to v5 +- Please use `AppiumClientCon...
7
6
0
[{"id": "G0", "claim": "The README migration-guide bullet misspells 'argument' as 'arguemnt'.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The logic handling a string command_executor should be extracted into a separate method so the super class...
null
appium__python-client__1123
appium/python-client
1,123
defect
2680a28e16259089b370d747ef0d90fb8b043198
71abfb4de864555361002eae211c704f61245348
feat: add method for interacting with the Flutter integration driver
Hi, This PR adds a method for interacting with the [Flutter integration driver.](https://github.com/AppiumTestDistribution/appium-flutter-integration-driver/releases/tag/v1.2.0) It adds partial filter support and render tree retrieval. Please let me know if any changes or improvements are needed. Thanks! --- ...
diff --git a/appium/webdriver/extensions/flutter_integration/flutter_commands.py b/appium/webdriver/extensions/flutter_integration/flutter_commands.py index 1830d0a26..f1cd32da8 100644 --- a/appium/webdriver/extensions/flutter_integration/flutter_commands.py +++ b/appium/webdriver/extensions/flutter_integration/flutter...
2
2
0
[{"id": "G0", "claim": "The 'Returns' section of the get_render_tree docstring says 'str', which does not match the method's declared List[Optional[Dict]] return type.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would probably be useful to p...
null
appium__python-client__1211
appium/python-client
1,211
defect
8466c27b8759fc18169a48d7f7ae49cc33fce0a9
1ec3fc0ef3efc3540040c9867fa30e899ec2c8d3
feat: Add AndroidKeyMetastate class for keyboard metastate constants
This pull request introduces a new `AndroidKeyMetastate` class to encapsulate Android keyboard metastate constants and updates the test suite to use these new constants instead of hardcoded values. This improves code readability and maintainability by providing named constants for key event metastates. Addressing ht...
diff --git a/appium/webdriver/extensions/android/nativekey.py b/appium/webdriver/extensions/android/nativekey.py index 05b558790..638116894 100644 --- a/appium/webdriver/extensions/android/nativekey.py +++ b/appium/webdriver/extensions/android/nativekey.py @@ -13,6 +13,49 @@ # limitations under the License. +class...
1
1
0
[{"id": "G0", "claim": "The AndroidKeyMetastate docstring should include a link to the android.view.KeyEvent reference documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__196
appium/python-client
196
defect
8366a0c872198564ef44331ed85955e8d8d08aad
eb2278ed711ecd8d34e97f03d7457e20b953c899
add appium prefix in create session and fix find_elements for W3C
## What do I do in this PR - Add `appium:` prefix for capabilities except for items defined by W3C - Add `forceMjsonwp` capability to force request format MJSONWP format. - By default, the client send `{'firstMatch': [{}], 'alwaysMatch': always_match}` style - We can remove this process after finishing mi...
diff --git a/appium/webdriver/webdriver.py b/appium/webdriver/webdriver.py index 4190b4a2f..7d6a657f3 100644 --- a/appium/webdriver/webdriver.py +++ b/appium/webdriver/webdriver.py @@ -26,7 +26,57 @@ from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement from selenium...
5
3
0
[{"id": "G0", "claim": "Iterate over the capabilities with `iteritems` instead of `items()`.", "category": "performance", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Define a named constant for the ':' string literal instead of inlining it in the capability-name check.", "cate...
null
appium__python-client__243
appium/python-client
243
defect
8a3ac84d7b0dadfc63d2c54475b058c6bdafd7ea
24d8c2db7241c95590fe4e9fdacbc41fd82b84e4
Autopepe
What about adding auto formatter for thire repository following https://www.python.org/dev/peps/pep-0008/ ? It will help collaborators to fix syntax ambiguous automatically. If we have syntax issue which can fix by autopep8 automatically, `ci.sh` raises an error. cc @VenkateshPS
diff --git a/.travis.yml b/.travis.yml index 8ddcc472b..c1d5ce330 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,4 @@ install: - pip install -r ci-requirements.txt script: - - python -m pylint --rcfile .pylintrc appium test --py3k - - python -m pytest test/unit/* + - ./ci.sh diff --git a/README.md b/REA...
1
1
0
[{"id": "G0", "claim": "It makes sense to configure max line length at 120 chars (instead of leaving autopep8 at its default, which forced awkward wrapping of lines like the saucetestcase print statement).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__248
appium/python-client
248
defect
3224f5a5d65fe81ff6aba6eb16e675daf1a17c1c
f619ba20b909767d0d6f8fd2e34448bf72218d66
Add xdist port handling
This is an example to show how to handle port numbers to run tests in parallel. This will help users when they'd ike to run tests in parallel. The example has only two simulator case. (This parallel running also help our test running.) Run test in parallel as an example for parallel running #247 ``` $ python -...
diff --git a/README.md b/README.md index 4301801a0..90be1d020 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,23 @@ download and unarchive the source tarball (Appium-Python-Client-X.X.tar.gz). $ python -m autopep8 -r --global-config .config-pep8 -i . ``` +## Run tests + +``` +$ py.test test/functional/ios/find_...
1
1
0
[{"id": "G0", "claim": "The magic strings ('gw0'/'gw1' and the PYTEST_XDIST_WORKER env-var lookups) would be more practical as constants.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__251
appium/python-client
251
defect
0e269b23381ac0a784c666298570318343573313
b9bbc02967b606eee900cbaec5be664adbc534cb
add find_elements w3c for webelement
# TODO - [x] Add tests for `element.find_element/s_by_xxxx` --- https://github.com/appium/appium/issues/10874#issuecomment-419973320 `driver.find_element/s_by_xxxx` works well. But `element.find_element/s_by_xxxx` doesn't since find selectors are converted to `css selector` by selenium-webdriver.
diff --git a/appium/webdriver/webelement.py b/appium/webdriver/webelement.py index 48f3b4cc4..7c1793a00 100644 --- a/appium/webdriver/webelement.py +++ b/appium/webdriver/webelement.py @@ -14,6 +14,9 @@ from selenium.webdriver.common.by import By from selenium.webdriver.remote.webelement import WebElement as Seleni...
1
1
0
[{"id": "G0", "claim": "The pull request should not add this commented-out _w3c converter code (or should explain/clean it up) in find_element.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__310
appium/python-client
310
defect
95ca3d02183dffecda79608fc785ef5e3e52b9d7
e1a18628d4da2aae4cce8f9126af6bf674dfc595
Add activities unittest
https://github.com/appium/python-client/issues/283
diff --git a/appium/webdriver/extensions/activities.py b/appium/webdriver/extensions/activities.py index 9cc8b0ac7..df6732855 100644 --- a/appium/webdriver/extensions/activities.py +++ b/appium/webdriver/extensions/activities.py @@ -67,7 +67,7 @@ def wait_activity(self, activity, timeout, interval=1): This i...
1
1
1
[{"id": "G0", "claim": "The new test_start_activity coverage should be split into two cases, one exercising start_activity with minimal arguments and one with the maximum (all optional) arguments.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
appium__python-client__354
appium/python-client
354
defect
84eab6d99d67cab3aa88c10e21d73baa29c3e67f
beeb2269166af853a847a4baf8555bada89901e3
Support set_power_capacity and set_power_ac
For https://github.com/appium/python-client/issues/353
diff --git a/appium/webdriver/extensions/power.py b/appium/webdriver/extensions/power.py new file mode 100644 index 000000000..fc52692e4 --- /dev/null +++ b/appium/webdriver/extensions/power.py @@ -0,0 +1,48 @@ +#!/usr/bin/env python + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not us...
4
4
0
[{"id": "G0", "claim": "The usage docstring example should call set_power_ac instead of set_power_state.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Methods that return nothing should return self so calls can be chained.", "category": "design",...
null
appium__python-client__357
appium/python-client
357
defect
6e4ae308f98653966b96294f779a9df061d0d56b
73f35c08d7b5c31a12bac438acfe4da7177dd3d5
Support set_gsm_signal
For https://github.com/appium/python-client/issues/353
diff --git a/appium/webdriver/extensions/gsm.py b/appium/webdriver/extensions/gsm.py new file mode 100644 index 000000000..04aa1eab4 --- /dev/null +++ b/appium/webdriver/extensions/gsm.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this...
4
3
3
[{"id": "G0", "claim": "Passing int 0 as signal strength is dropped and the default 4 (Gsm.GREAT) gets applied on the device instead of NONE_OR_UNKNOWN, so the strength constants should be ints rather than strings, with a unit test for the zero value.", "category": "correctness", "verdict": "supported", "priority": "P1...
null
appium__python-client__368
appium/python-client
368
defect
e01f998d00d8b7d5f47dc5c76eb895b444376739
01b450faee0f1295ce045a393cd6d3e39e1083cc
Support get_performance_data, get_performance_data_types
For https://github.com/appium/python-client/issues/353
diff --git a/appium/webdriver/extensions/performance.py b/appium/webdriver/extensions/performance.py new file mode 100644 index 000000000..67f63249a --- /dev/null +++ b/appium/webdriver/extensions/performance.py @@ -0,0 +1,55 @@ +#!/usr/bin/env python + +# Licensed under the Apache License, Version 2.0 (the "License");...
1
1
0
[{"id": "G0", "claim": "The get_performance_data and get_performance_data_types docstrings should note the feature is Android-only (\"For Android\"), since the Python client keeps all APIs in one module.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__386
appium/python-client
386
defect
af2fa7034fe3874e666316ce701ce25e8e64425b
068a1bd6238c70c2accc443afae12600fd83b1dc
Support set_network_speed
It's missing api support. I've noticed by comparing below 2 files. * https://github.com/appium/python-client/blob/master/appium/webdriver/mobilecommand.py * https://github.com/appium/ruby_lib_core/blob/fd2cbde5466a144ce8dccfc6cf330b969bcc8fd3/lib/appium_lib_core/common/command/common.rb
diff --git a/appium/webdriver/extensions/android/gsm.py b/appium/webdriver/extensions/android/gsm.py index fbcc8e96e..0ea9dfa1e 100644 --- a/appium/webdriver/extensions/android/gsm.py +++ b/appium/webdriver/extensions/android/gsm.py @@ -52,7 +52,8 @@ def make_gsm_call(self, phone_number, action): :Args: ...
1
1
0
[{"id": "G0", "claim": "The set_network_speed docstring should use a better approach for cross-references to classes/methods (as in the linked Stack Overflow answer) instead of naming appium.webdriver.extensions.android.network.NetSpeed as plain text.", "category": "documentation", "verdict": "supported", "priority": "...
null
appium__python-client__388
appium/python-client
388
defect
5abaaff2353eb2d0e6148fe5c15f9b08a7214038
6510c6b64fa500935f1a29326aadcb87639b50df
Support get_display_density
It's missing api support. (It's the last one for now, I would say.) I've noticed by comparing below 2 files. * https://github.com/appium/python-client/blob/master/appium/webdriver/mobilecommand.py * https://github.com/appium/ruby_lib_core/blob/fd2cbde5466a144ce8dccfc6cf330b969bcc8fd3/lib/appium_lib_core/common/co...
diff --git a/appium/webdriver/extensions/android/display.py b/appium/webdriver/extensions/android/display.py new file mode 100644 index 000000000..d2bde1d1b --- /dev/null +++ b/appium/webdriver/extensions/android/display.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python + +# Licensed under the Apache License, Version 2.0 (the...
1
1
0
[{"id": "G0", "claim": "The get_display_density docstring should describe the meaning of the returned units.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__406
appium/python-client
406
defect
51a42367ed2d5e0cfa4097bb889630a55e974b4a
2bad68871c168f6ae53bcf337103f531c78cb8d5
Add execute driver
Waiting for https://github.com/appium/appium-base-driver/pull/328 Added _execute_driver_ as the new feature. You can try the feature as `$ pytest test/functional/ios/execute_driver_tests.py` after applying the base driver PR on your local. I'll update this PR if something changes in the base driver PR.
diff --git a/appium/webdriver/extensions/execute_driver.py b/appium/webdriver/extensions/execute_driver.py new file mode 100644 index 000000000..25872c242 --- /dev/null +++ b/appium/webdriver/extensions/execute_driver.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python + +# Licensed under the Apache License, Version 2.0 (the "L...
5
3
0
[{"id": "G0", "claim": "The `timeout` argument would be better named `timeout_ms`, since the value is a number of milliseconds.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The triple-quoted script strings in the tests should be indented and p...
null
appium__python-client__429
appium/python-client
429
defect
bca75fb951fbd30ae087b64cc610200fce8f28e9
2041e27d0959357d7eb7b44dea9164547aad5012
Add events property
COPY OF https://github.com/appium/python-client/pull/427 Needed to run python isort
diff --git a/Pipfile b/Pipfile index a1f212773..b4e3a724d 100644 --- a/Pipfile +++ b/Pipfile @@ -5,6 +5,7 @@ verify_ssl = true [dev-packages] pre-commit = "~=1.13" +mock = "~=3.0" [packages] selenium = "~=3.141" diff --git a/appium/webdriver/mobilecommand.py b/appium/webdriver/mobilecommand.py index 3128a089e.....
2
2
2
[{"id": "G0", "claim": "mock must be declared under [packages] in the Pipfile because modules under [dev-packages] are not installed on CI; otherwise the test module's `from mock import patch` fails on Travis with ImportError.", "category": "build", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id...
null
appium__python-client__443
appium/python-client
443
defect
49a7914d4496210c28ff2dc70d8bb4da2d8b9daa
fd75300babcc35603a30308fed167d304bf423b2
AndroidKey class for Key Codes added.
AndroidKey enum from java client ported. Instead of using unreadable numbers in code we can use these constant in order to write more readable code.
diff --git a/appium/webdriver/extensions/android/nativekey.py b/appium/webdriver/extensions/android/nativekey.py new file mode 100644 index 000000000..3132d1152 --- /dev/null +++ b/appium/webdriver/extensions/android/nativekey.py @@ -0,0 +1,1057 @@ +class AndroidKey: + # Key code constant: Unknown key code. + UNK...
6
6
2
[{"id": "G0", "claim": "The newly added AndroidKey class should have a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment above STAR = 17 says '#' but should say '*' (the '#' comment belongs to the pound key below).", "category": "document...
null
appium__python-client__486
appium/python-client
486
defect
fbe9e11d8703127e9bd7b441d6d644911e03ebcf
73d4620bdd0f0c1b317c0db3b469565cd28ddad2
chore: Applied some py3 formats
### Changes * Used `f'This is {item}'` instead of `'This is {}'.format(item)` for some cases. * Removed unnecessary `(object)` from class definitions. * Removed unused imports
diff --git a/appium/saucetestcase.py b/appium/saucetestcase.py index a2e94abaa..754146fb3 100644 --- a/appium/saucetestcase.py +++ b/appium/saucetestcase.py @@ -19,7 +19,7 @@ import os import sys import unittest -from typing import Any, Callable, List +from typing import Callable, List from sauceclient import Sau...
4
4
0
[{"id": "G0", "claim": "Revert the f-string conversion of the node require.resolve command in _get_main_script back to the previous .format() form.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Revert the f-string conversion of the direct-conne...
null
appium__python-client__515
appium/python-client
515
defect
446b8c49b85bc8efb38070958dd1190138177c59
8c4b361f244a760bf8a7a97afd0d150d42877d15
feat: Override send_keys without file upload function
Will update the naming, but let me create a PR as a draft background: https://github.com/appium/appium-desktop/issues/1335 `send_keys` by some selenium bindings send a local file binary if the given string is a file. But https://github.com/appium/appium-desktop/issues/1335 has a use case won't send a local file ev...
diff --git a/appium/webdriver/webelement.py b/appium/webdriver/webelement.py index bf8efc5b4..af21528ae 100644 --- a/appium/webdriver/webelement.py +++ b/appium/webdriver/webelement.py @@ -13,6 +13,7 @@ # limitations under the License. from selenium.webdriver.common.by import By +from selenium.webdriver.common.util...
1
1
1
[{"id": "G0", "claim": "Override the original Selenium implementation of send_keys instead of adding a separate send_keys_direct method, since no Appium driver supports sending files.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
appium__python-client__531
appium/python-client
531
defect
fc048c9e417aaf12ad8eb3142dce57ae6e62c3e0
34ea8904cdc25b98e06092c207c5f426573cfd74
test: Add appium_service functional test
### Details Added appium_service functional test
diff --git a/ci-jobs/functional/run_android_test.yml b/ci-jobs/functional/run_android_test.yml index 1786e8dc1..4c7df3660 100644 --- a/ci-jobs/functional/run_android_test.yml +++ b/ci-jobs/functional/run_android_test.yml @@ -9,6 +9,7 @@ jobs: - template: ./run_appium.yml parameters: OPENCV: $...
1
1
0
[{"id": "G0", "claim": "Remove the '# -*- coding: utf-8 -*-' line from the new test file since it is no longer needed for Python 3.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
appium__python-client__594
appium/python-client
594
defect
66208fdbbc8f0a8b0e90376b404135b57e797fa5
28ea91b32e7ee7fb7100985639f5dfadfd1f81b8
feat: Added optional location speed attribute for android devices
Added location speed attribute. This enables testing of android applications that require mock locations having valid speed reported. This is related to: - **io.appium.settings** pull request: https://github.com/appium/io.appium.settings/pull/70 - **appium-adb** pull request https://github.com/appium/appium-adb/pull...
diff --git a/appium/webdriver/extensions/location.py b/appium/webdriver/extensions/location.py index b33693363..3d09b5882 100644 --- a/appium/webdriver/extensions/location.py +++ b/appium/webdriver/extensions/location.py @@ -38,7 +38,8 @@ def toggle_location_services(self: T) -> T: return self def set_l...
3
2
1
[{"id": "G0", "claim": "The new speed value is assigned under a guard that tests altitude instead of speed, so a provided speed is dropped when altitude is None and speed is sent as None when only altitude is given; the condition should be `if speed is not None`.", "category": "correctness", "verdict": "supported", "pr...
null
appium__python-client__608
appium/python-client
608
defect
37258a392b630686797e3f7bdcc038bdd6e89d83
72f553deae1c9360b35970fa405fbe7710ee3443
feat: allow to add a command dynamically
Appium 2.0 will allow custom drivers/plugins add their own endpoint. Then, we want to allow clients to add custom commands for them. In Ruby, I've added like https://github.com/appium/ruby_lib_core/blob/b9f015d7dea14964a0733f2385ebcff68da1e18e/test/unit/android/webdriver/w3c/commands_test.rb#L31-L98 as an experimen...
diff --git a/appium/webdriver/webdriver.py b/appium/webdriver/webdriver.py index 9b17d43cb..451d5218a 100644 --- a/appium/webdriver/webdriver.py +++ b/appium/webdriver/webdriver.py @@ -15,7 +15,7 @@ # pylint: disable=too-many-lines,too-many-public-methods,too-many-statements,no-self-use import copy -from typing imp...
5
4
0
[{"id": "G0", "claim": "The module-level constant AVAILABLE_METHOD should be spelled AVAILABLE_METHODS (plural).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "add_command is annotated to return Callable although it returns self, so the annotati...
null