Skip to content

Visualizer copy#1780

Merged
drosetti merged 27 commits intodevelopfrom
visualizer_copy
Jul 26, 2023
Merged

Visualizer copy#1780
drosetti merged 27 commits intodevelopfrom
visualizer_copy

Conversation

@carellamartina
Copy link
Contributor

Description

Added tooltip component with description, copy and link buttons on base and bool visualizer element.

Type of change

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist

  • I have read and understood the rules about how to Contribute to this project
  • The pull request is for the branch develop
  • A new plugin (analyzer, connector, visualizer or playbook) was added or changed, in which case:
    • Usage file was updated.
    • Advanced-Usage was updated (in case the plugin provides additional optional configuration).
    • If the plugin requires mocked testing, _monkeypatch() was used in its class to apply the necessary decorators.
    • If a File analyzer was added and it supports a mimetype which is not already supported, you added a sample of that type inside the archive test_files.zip and you added the default tests for that mimetype in test_classes.py.
    • If you created a new analyzer and it is free (does not require API keys), please add it in the FREE_TO_USE_ANALYZERS playbook in playbook_config.json.
    • Check if it could make sense to add that analyzer/connector to other freely available playbooks.
    • I have provided the resulting raw JSON of a finished analysis and a screenshot of the results.
  • If external libraries/packages with restrictive licenses were used, they were added in the Legal Notice section.
  • Linters (Black, Flake, Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.
  • I have added tests for the feature/bug I solved (see tests folder). All the tests (new and old ones) gave 0 errors.
  • If changes were made to an existing model/serializer/view, the docs were updated and regenerated (check CONTRIBUTE.md).
  • If the GUI has been modified:
    • I have a provided a screenshot of the result in the PR.
    • I have created new frontend tests for the new component or updated existing ones.

Important Rules

  • If you miss to compile the Checklist properly, your PR won't be reviewed by the maintainers.
  • If your changes decrease the overall tests coverage (you will know after the Codecov CI job is done), you should add the required tests to fix the problem
  • Everytime you make changes to the PR and you think the work is done, you should explicitly ask for a review. After being reviewed and received a "change request", you should explicitly ask for a review again once you have made the requested changes.

carellamartina and others added 21 commits June 27, 2023 18:28
* added function to handle visualizers errors

* doc update
* More status mgmt

Signed-off-by: 0ssigeno <[email protected]>

* Black

Signed-off-by: 0ssigeno <[email protected]>

* Minor fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fix migrations

Signed-off-by: 0ssigeno <[email protected]>

* Fix migrations

Signed-off-by: 0ssigeno <[email protected]>

* Prettier

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

---------

Signed-off-by: 0ssigeno <[email protected]>
* Start

Signed-off-by: 0ssigeno <[email protected]>

* More stuff

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fix

Signed-off-by: 0ssigeno <[email protected]>

* Fix

Signed-off-by: 0ssigeno <[email protected]>

* Blake

Signed-off-by: 0ssigeno <[email protected]>

* Visualizer config points only to a single playbook, not many

Signed-off-by: 0ssigeno <[email protected]>

* Fix migration

Signed-off-by: 0ssigeno <[email protected]>

* Fix tests

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fix post review

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Blake

Signed-off-by: 0ssigeno <[email protected]>

* little adjustments

* Blake

Signed-off-by: 0ssigeno <[email protected]>

* Unused migration

Signed-off-by: 0ssigeno <[email protected]>

* Fix page order

Signed-off-by: 0ssigeno <[email protected]>

* Fix migration

Signed-off-by: 0ssigeno <[email protected]>

* Fix

Signed-off-by: 0ssigeno <[email protected]>

---------

Signed-off-by: 0ssigeno <[email protected]>
Co-authored-by: Matteo Lodi <[email protected]>
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](ossf/scorecard-action@e38b190...08b4669)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.2.1 to 3.3.3.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](pre-commit/pre-commit@v3.2.1...v3.3.3)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix captcha

Signed-off-by: 0ssigeno <[email protected]>

* Fix backend

Signed-off-by: 0ssigeno <[email protected]>

* fix frontend

* Fix environments

Signed-off-by: 0ssigeno <[email protected]>

* Fix

Signed-off-by: 0ssigeno <[email protected]>

* black

* Fix deepsource

Signed-off-by: 0ssigeno <[email protected]>

---------

Signed-off-by: 0ssigeno <[email protected]>
Co-authored-by: Daniele Rosetti <[email protected]>
Signed-off-by: 0ssigeno <[email protected]>
* Pivot

Signed-off-by: 0ssigeno <[email protected]>

* More stuff

Signed-off-by: 0ssigeno <[email protected]>

* More stuff

Signed-off-by: 0ssigeno <[email protected]>

* Typo

Signed-off-by: 0ssigeno <[email protected]>

* Pivot

Signed-off-by: 0ssigeno <[email protected]>

* Minor fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Update tests/pivot_manager/test_views.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Update tests/pivot_manager/test_views.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Update api_app/pivots_manager/models.py

Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>

* Fix post review

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* More fixes and tests

Signed-off-by: 0ssigeno <[email protected]>

* More fixes

Signed-off-by: 0ssigeno <[email protected]>

* Minor fixes

Signed-off-by: 0ssigeno <[email protected]>

* deepsource

Signed-off-by: 0ssigeno <[email protected]>

* typo

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Blake

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Fixes

Signed-off-by: 0ssigeno <[email protected]>

* Manage files

Signed-off-by: 0ssigeno <[email protected]>

* Fix test

Signed-off-by: 0ssigeno <[email protected]>

---------

Signed-off-by: 0ssigeno <[email protected]>
Co-authored-by: code-review-doctor[bot] <72320148+code-review-doctor[bot]@users.noreply.github.com>
Co-authored-by: Matteo Lodi <[email protected]>
* collapsed jobInfoCard in jobResult

* adjusted UncontrolledTooltip message

* added collapse test
Signed-off-by: 0ssigeno <[email protected]>
* fixed status

* changed size for children elements

* removed test

* test modify

* added small

* improved small value

* fixed frontend tests

* prettier
Signed-off-by: 0ssigeno <[email protected]>
Copy link
Contributor

@code-review-doctor code-review-doctor bot left a comment

Choose a reason for hiding this comment

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

Some food for thought. View full project report here.

@carellamartina carellamartina requested a review from drosetti July 5, 2023 14:42
@codecov
Copy link

codecov bot commented Jul 5, 2023

Codecov Report

Merging #1780 (fcc6907) into develop (aa8820f) will increase coverage by 8.75%.
The diff coverage is 75.38%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1780      +/-   ##
===========================================
+ Coverage    66.75%   75.50%   +8.75%     
===========================================
  Files           95      356     +261     
  Lines         3706    11755    +8049     
  Branches       519     1245     +726     
===========================================
+ Hits          2474     8876    +6402     
- Misses         941     2374    +1433     
- Partials       291      505     +214     
Impacted Files Coverage Δ
...analyzers_manager/migrations/0004_datamigration.py 91.30% <ø> (ø)
api_app/management/commands/dumpplugin.py 0.00% <0.00%> (ø)
api_app/management/commands/dumppluginconfig.py 0.00% <0.00%> (ø)
api_app/management/commands/update_analyzer.py 0.00% <0.00%> (ø)
api_app/migrations/0001_initial.py 100.00% <ø> (ø)
api_app/migrations/0002_added_job_field.py 100.00% <ø> (ø)
api_app/migrations/0003_auto_20201020_1406.py 100.00% <ø> (ø)
api_app/migrations/0004_auto_20201112_0021.py 100.00% <ø> (ø)
api_app/migrations/0005_auto_20210610_1028.py 100.00% <ø> (ø)
api_app/migrations/0006_v3_release.py 100.00% <ø> (ø)
... and 233 more

... and 166 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d66806b...fcc6907. Read the comment docs.

@carellamartina carellamartina requested a review from drosetti July 11, 2023 10:04
@drosetti drosetti merged commit 357f7f1 into develop Jul 26, 2023
@drosetti drosetti deleted the visualizer_copy branch July 26, 2023 07:28
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.

4 participants