Previously, the Confluence collator would generate an invalid CQL query
of the form `() and (label="test")` if the `spaces` configuration was
empty or not provided, but a `query` was specified. This resulted in
no search results.
This commit refines the CQL query generation logic to correctly handle
different combinations of `spaces` and `query` parameters:
- If only `spaces` are provided, the query will be `space=S1 or space=S2`.
- If only `query` is provided, the query will be `your_query_here`.
- If both `spaces` and `query` are provided, they will be combined
as `(space="S1" or space="S2") and (your_query_here)`.
- If neither is provided, the default query to fetch all content types
(`type IN (page, blogpost, comment, attachment)`) is used.
Additionally, new test cases have been added to cover these scenarios,
and the plugin documentation has been updated to clarify the behavior
of these parameters.
Signed-off-by: GitLab CI <128792991+dfl-aeb@users.noreply.github.com>
* v1.40.2 version bump
* Updated API Report
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
---------
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andre Wanlin <awanlin@spotify.com>
Manually updates the "engines" field of all workspace package.json files
to include Node.js 22. This intentionally replaces part of the generated
rennovate PR which attempted to globally replace rather than add Node.js
22 to the engines field.
For both community-plugins-maintainers and sda-se-reviewers owned
workspaces Node.js 18 is removed.
Note that this is only updates the workspace package.json - therefore it
should not impact end users installing plugins.
Refs: https://github.com/backstage/community-plugins/pull/2403
Signed-off-by: Beth Griggs <bethanyngriggs@gmail.com>
* v1.37.0 version bump
* Updated API Report
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
---------
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andre Wanlin <awanlin@spotify.com>
* add yarn update docs and script
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* update docs
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* add contributing note
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* update yarn to v4
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* update lockfile on every workspace
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* declare existing csstype resolutions
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* dedupe workspaces
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* disable lint issues
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
---------
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
* various - Remove backend import from alpha export
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
* mta corrections
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
---------
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Co-authored-by: Kashish Mittal <113269381+04kash@users.noreply.github.com>
* update confluence config & docs
Signed-off-by: Alex McKay <amckay@spotify.com>
* add unit tests for collator factory
Signed-off-by: Alex McKay <amckay@spotify.com>
* make cql docs reference a hyperlink
Signed-off-by: Alex McKay <amckay@spotify.com>
---------
Signed-off-by: Alex McKay <amckay@spotify.com>
* update searchResultItem to truncate excerpt text
Signed-off-by: Alex McKay <amckay@spotify.com>
* add overflow check for non highlighted text result
Signed-off-by: Alex McKay <amckay@spotify.com>
* make ellipses at the end of excerpt conditional
Signed-off-by: Alex McKay <amckay@spotify.com>
---------
Signed-off-by: Alex McKay <amckay@spotify.com>
* add app-next for confluence
Signed-off-by: Alex McKay <amckay@spotify.com>
* add support for new FE system
Signed-off-by: Alex McKay <amckay@spotify.com>
* update readme
Signed-off-by: Alex McKay <amckay@spotify.com>
* add changeset for collator typo fix
Signed-off-by: Alex McKay <amckay@spotify.com>
---------
Signed-off-by: Alex McKay <amckay@spotify.com>
Co-authored-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
* v1.32.2 version bump
* Updated API Reports
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
---------
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Andre Wanlin <awanlin@spotify.com>