Skip to content

Support Baseline Id in lobster-codebeamer#587

Open
iceman-muc wants to merge 12 commits into
mainfrom
feature/lobster-codebeamer-with-BaselineId
Open

Support Baseline Id in lobster-codebeamer#587
iceman-muc wants to merge 12 commits into
mainfrom
feature/lobster-codebeamer-with-BaselineId

Conversation

@iceman-muc

Copy link
Copy Markdown
Collaborator

No description provided.

iceman-muc added 3 commits May 20, 2026 10:49
- Add 'Querying at a Baseline' subsection to user manual
- Add baseline_id to Python API reference (Config params,
  behavioral notes, error conditions)
- Remove baseline_id from report-ID query path (has no effect
  on /reports/{id}/items endpoint; only works with cbQL strings)
- Add baseline_id=None to setUp (required positional field)
- Add test_get_query_with_query_and_baseline_id: verifies baselineId
  is appended to URL when import_query is a cbQL string
- Add test_get_query_with_ID_and_baseline_id: verifies baselineId
  is NOT appended when import_query is a numeric report ID
@iceman-muc iceman-muc requested a review from a team as a code owner May 20, 2026 09:42
iceman-muc and others added 2 commits May 20, 2026 15:01
Replace %-style URL formatting with f-string (consistent with
the int branch) while keeping baseline_id logic intact.
@phiwuu phiwuu added the lobster-codebeamer Affects codebeamer integration label May 27, 2026

@phiwuu phiwuu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please also:

  • update the CHANGELOG.md
  • add a system test

Comment thread documentation/manual-lobster_codebeamer.md Outdated
Comment thread manual/tools/codebeamer.rst Outdated
Comment thread manual/tools/codebeamer.rst Outdated
Comment thread manual/tools/codebeamer.rst Outdated
Comment thread manual/tools/codebeamer.rst Outdated
Comment thread lobster/tools/codebeamer/codebeamer.py
…d combos

- Raise KeyError when baseline_id is combined with import_tagged or
  numeric import_query (instead of silently ignoring)
- Change baseline_id type validation from KeyError to ValueError
- Catch KeyError in _run_impl for clean exit code 1
- Remove 'silently ignored' behavioral note from docs
- Update CHANGELOG.md with baseline_id feature entry
- Add system test for baseline_id validation (test_baseline_id.py)
- Extend test runner ConfigFileData with import_tagged and baseline_id
…test

The cbQL query endpoint returns items directly in the 'items' array,
not wrapped in {'item': {...}} like the report-ID endpoint does.
@iceman-muc iceman-muc requested a review from phiwuu June 9, 2026 08:58
@iceman-muc

Copy link
Copy Markdown
Collaborator Author

Please also:

  • update the CHANGELOG.md
  • add a system test

Changelog is updated an a system test was already added

completed_process = self._test_runner.run_tool_test()
asserter = Asserter(self, completed_process, self._test_runner)
asserter.assertExitCode(1)
self.assertIn("mutually exclusive", completed_process.stderr)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please compare with the full error message like it is done here.

It might happen that two errors might contain same words, so better to assert with full error for correctness.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done with commit 1f40db3

Address PR review: compare the complete stderr output instead of only a substring (assertIn), since different errors may share the same words.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lobster-codebeamer Affects codebeamer integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants