Commit 65f1ffb
committed
Document atlas_doc_format body as a serialized-JSON string
Clarify the -Body help for New-ConfluencePage, Update-ConfluencePage and Add-ConfluenceComment: the v2 API stores body.value as a string for every representation, and for atlas_doc_format the string is the ADF document serialized as JSON. The existing [string]\During review of #17, Copilot suggested that `Remove-ConfluenceLabel` add a `-Prefix` parameter (defaulting to `global`) and include it in the DELETE query.
The current behavior is correct for the common case: the v1 `DELETE /wiki/rest/api/content/{id}/label?name=<name>` endpoint defaults `prefix` to `global`, so removing a global label by name works. This is proven by the passing integration test in #17, which removes a label by name and then asserts it is no longer present on the page.
This issue tracks the optional enhancement of supporting non-`global` label prefixes (`my`, `team`, `system`) across the label cmdlets (`Add-ConfluenceLabel`, `Get-ConfluenceLabel`, `Remove-ConfluenceLabel`) by adding an optional `-Prefix` parameter, so labels with a non-default prefix can be managed. This is out of scope for #17, which delivers global-label management. handling is correct; this documents the expected input (review threads on atlas_doc_format handling).1 parent 648ab3c commit 65f1ffb
3 files changed
Lines changed: 9 additions & 3 deletions
File tree
- src/functions/public
- Comments
- Pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
0 commit comments