Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add report projects #24

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

Shelex
Copy link
Contributor

@Shelex Shelex commented Oct 9, 2024

Rationale

Having all results and reports stored in a single list makes it hard to distinguish them by just id and time of uploading. Moreover, usually on a project you would have separate runs like regression or smoke, as well as different product areas or teams. Thus a concept of a project could be introduced.

Added

Backend

  • you can add a property project to results payload which will be separated from other tags
  • reports location is changed from /data/reports/reportID/ to /data/reports/projectName/reportID/ (applies to local fs, s3 and reports serving)
  • /api/project/list endpoint to make it simplier for ui to grab a list of projects available for reports
  • /api/report/generate now can also accept project property

UI

  • result and report tables have aproject column
  • reports, results and trends could be filtered by project name
  • when generating report a modal will be opened where you can select a project from list of results' projects or specify your own

TODO

  • to support uploading and generating reports right from a reporter we should update the query and pass a report name from a resultDetails or custom env variable.
  • storage clients have method moveReport which will be used later as a part of feature to move report to another project folder, but will be implemented separately.

@Xotabu4 Xotabu4 merged commit 0a0f89c into CyborgTests:main Oct 10, 2024
4 checks passed
@Shelex Shelex deleted the feat/addReportProjects branch October 10, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants