Skip to content
Snippets Groups Projects

Introduce remediations to activity filter

Merged Samantha Ming requested to merge 427622-has-remediations into master

What does this MR do and why?

Add "Solution" (Remediation) section to the Activity filter

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
image image

How to set up and validate locally

  1. Have the related FF enabled: echo "Feature.enable(:activity_filter_has_remediations)" | rails c
  2. In order to run a pipeline to generate a Vulnerability report, you'll need an EE license.
  3. Fork https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/test-remediations.
  4. Run a pipeline against the default branch. It will generate vulnerabilities.
  5. Go to the project vulnerability report page
  6. Select an "Activity" filter, it will have the "Solution available" items
  7. When selected, the vulnerabilities will be filtered accordingly

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #427622 (closed)

Edited by Samantha Ming

Merge request reports

Merged results pipeline #1057474699 passed with warnings

Pipeline: E2E Omnibus GitLab EE

#1057531905

    Pipeline: Ruby 3 forced pipeline

    #1057478577

      Pipeline: GitLab

      #1057479886

        +3

        Merged results pipeline passed with warnings for d386be53

        Test coverage 82.42% from 2 jobs

        Merged by Savas VedovaSavas Vedova 1 year ago (Nov 1, 2023 3:02pm UTC)

        Loading

        Pipeline #1057772141 passed

        Pipeline passed for 315eb486 on master

        Test coverage 66.66% from 2 jobs
        10 environments impacted.

        Activity

        Filter activity
        • Approvals
        • Assignees & reviewers
        • Comments (from bots)
        • Comments (from users)
        • Commits & branches
        • Edits
        • Labels
        • Lock status
        • Mentions
        • Merge request status
        • Tracking
      • 2 Warnings

        featureaddition and featureenhancement merge requests normally have a documentation change. Consider adding a documentation update or confirming the documentation plan with the Technical Writer counterpart.

        For more information, see:

        This Merge Request needs to be labelled with feature flag, backend. Please request a reviewer or maintainer to add them.
        1 Message
        📖 CHANGELOG missing:

        If this merge request needs a changelog entry, add the Changelog trailer to the commit message you want to add to the changelog.

        If this merge request doesn't need a CHANGELOG entry, feel free to ignore this message.

        Reviewer roulette

        Changes that require review have been detected!

        Please refer to the table below for assigning reviewers and maintainers suggested by Danger in the specified category:

        Category Reviewer Maintainer
        backend @partiaga profile link current availability (UTC+11, 10 hours ahead of author) @ahmed.hemdan profile link current availability (UTC+1, same timezone as author)
        frontend @minahilnichols profile link current availability (UTC-4, 5 hours behind author) @himkp profile link current availability (UTC+1, same timezone as author)

        Please check reviewer's status!

        • available Reviewer is available!
        • unavailable Reviewer is unavailable!

        Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

        To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

        Once you've decided who will review this merge request, assign them as a reviewer! Danger does not automatically notify them for you.

        If needed, you can retry the 🔁 danger-review job that generated this comment.

        Generated by 🚫 Danger

        Edited by Ghost User
      • Bundle size analysis [beta]

        This compares changes in bundle size for entry points between the commits 5cd75933 and 7e1127ff

        Special assets

        Entrypoint / Name Size before Size after Diff Diff in percent
        average 4.11 MB 4.11 MB - 0.0 %
        mainChunk 3.06 MB 3.06 MB - 0.0 %

        Note: We do not have exact data for 5cd75933. So we have used data from: 2d79ea34.
        The intended commit has no webpack pipeline, so we chose the last commit with one before it.

        Please look at the full report for more details


        Read more about how this report works.

        Generated by 🚫 Danger

        Edited by Ghost User
      • Samantha Ming added 1 commit

        added 1 commit

        • 214ee4e3 - Introduce remediations to activity filter

        Compare with previous version

      • Samantha Ming resolved all threads

        resolved all threads

      • Samantha Ming added 1 commit

        added 1 commit

        • a548a01f - Introduce remediations to activity filter

        Compare with previous version

      • Samantha Ming changed the description

        changed the description

      • Allure report

        allure-report-publisher generated test report!

        e2e-test-on-gdk: test report for 7e1127ff

        expand test summary
        +-----------------------------------------------------------------------+
        |                            suites summary                             |
        +------------------+--------+--------+---------+-------+-------+--------+
        |                  | passed | failed | skipped | flaky | total | result |
        +------------------+--------+--------+---------+-------+-------+--------+
        | Plan             | 55     | 0      | 0       | 0     | 55    | ✅     |
        | Create           | 40     | 0      | 6       | 0     | 46    | ✅     |
        | Verify           | 32     | 0      | 0       | 1     | 32    | ❗     |
        | Govern           | 48     | 0      | 0       | 0     | 48    | ✅     |
        | Data Stores      | 22     | 0      | 0       | 0     | 22    | ✅     |
        | Package          | 0      | 0      | 1       | 0     | 1     | ➖     |
        | Framework sanity | 0      | 0      | 1       | 0     | 1     | ➖     |
        | Monitor          | 4      | 0      | 0       | 0     | 4     | ✅     |
        | Manage           | 0      | 0      | 1       | 0     | 1     | ➖     |
        +------------------+--------+--------+---------+-------+-------+--------+
        | Total            | 201    | 0      | 9       | 1     | 210   | ❗     |
        +------------------+--------+--------+---------+-------+-------+--------+

        e2e-package-and-test: test report for 7e1127ff

        expand test summary
        +-----------------------------------------------------------------------+
        |                            suites summary                             |
        +------------------+--------+--------+---------+-------+-------+--------+
        |                  | passed | failed | skipped | flaky | total | result |
        +------------------+--------+--------+---------+-------+-------+--------+
        | Create           | 668    | 0      | 127     | 0     | 795   | ✅     |
        | Manage           | 43     | 0      | 12      | 1     | 55    | ❗     |
        | Package          | 260    | 0      | 21      | 3     | 281   | ❗     |
        | Fulfillment      | 10     | 0      | 92      | 0     | 102   | ✅     |
        | Analytics        | 9      | 0      | 0       | 0     | 9     | ✅     |
        | Govern           | 393    | 0      | 16      | 3     | 409   | ❗     |
        | Configure        | 1      | 0      | 12      | 0     | 13    | ✅     |
        | Verify           | 200    | 0      | 20      | 3     | 220   | ❗     |
        | Systems          | 8      | 0      | 0       | 0     | 8     | ✅     |
        | Plan             | 328    | 0      | 13      | 0     | 341   | ✅     |
        | Release          | 20     | 0      | 4       | 0     | 24    | ✅     |
        | Secure           | 8      | 0      | 4       | 0     | 12    | ✅     |
        | Data Stores      | 151    | 0      | 3       | 0     | 154   | ✅     |
        | Monitor          | 48     | 0      | 9       | 0     | 57    | ✅     |
        | GitLab Metrics   | 2      | 0      | 1       | 1     | 3     | ❗     |
        | Framework sanity | 0      | 0      | 6       | 0     | 6     | ➖     |
        | ModelOps         | 0      | 0      | 8       | 0     | 8     | ➖     |
        | Growth           | 0      | 0      | 8       | 0     | 8     | ➖     |
        +------------------+--------+--------+---------+-------+-------+--------+
        | Total            | 2149   | 0      | 356     | 11    | 2505  | ❗     |
        +------------------+--------+--------+---------+-------+-------+--------+

        e2e-review-qa: test report for 7e1127ff

        expand test summary
        +-----------------------------------------------------------------------+
        |                            suites summary                             |
        +------------------+--------+--------+---------+-------+-------+--------+
        |                  | passed | failed | skipped | flaky | total | result |
        +------------------+--------+--------+---------+-------+-------+--------+
        | Govern           | 3      | 0      | 0       | 0     | 3     | ✅     |
        | Create           | 8      | 0      | 1       | 0     | 9     | ✅     |
        | Monitor          | 4      | 0      | 0       | 0     | 4     | ✅     |
        | Plan             | 3      | 0      | 1       | 0     | 4     | ✅     |
        | Data Stores      | 2      | 0      | 0       | 0     | 2     | ✅     |
        | Package          | 0      | 0      | 1       | 0     | 1     | ➖     |
        | Framework sanity | 0      | 0      | 1       | 0     | 1     | ➖     |
        +------------------+--------+--------+---------+-------+-------+--------+
        | Total            | 20     | 0      | 4       | 0     | 24    | ✅     |
        +------------------+--------+--------+---------+-------+-------+--------+
        Edited by Ghost User
      • 🛠 Generated by gitlab_quality-test_tooling.

        Please share your feedback and suggestions.


        🐌 Slow tests detected in this merge request, might be related with changed RSpec files.

        Job File Name Duration Expected duration
        #5364352895 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 30.02 s < 27.12 s
        #5364352890 ee/spec/models/ee/group_spec.rb#L701 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 51.88 s < 45.4 s
        #5372175069 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 33.21 s < 27.12 s
        #5372175076 ee/spec/models/ee/group_spec.rb#L701 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 66.14 s < 45.4 s
        #5384820676 ee/spec/models/ee/group_spec.rb#L701 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 54.05 s < 45.4 s
        #5384820657 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 32.06 s < 27.12 s
        #5384820704 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 31.89 s < 27.12 s
        #5384820721 ee/spec/models/ee/group_spec.rb#L701 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 50.97 s < 45.4 s
        #5397579011 ee/spec/models/ee/group_spec.rb#L701 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 61.03 s < 45.4 s
        #5397579053 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 28.94 s < 27.12 s
        #5397579059 ee/spec/models/ee/group_spec.rb#L701 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 56.34 s < 45.4 s
        #5397578688 spec/features/dashboard/activity_spec.rb#L190 Dashboard > Activity event filters user see selected event after page reloading 64.31 s < 50.13 s
        #5397579012 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 33.17 s < 27.12 s
        #5435328877 ee/spec/models/ee/group_spec.rb#L702 Group#vulnerability_reads returns vulnerabilities for projects in the group and its subgroups 51.14 s < 45.4 s
        #5435328911 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 30.24 s < 27.12 s
        #5435328956 ee/spec/lib/quality/seeders/vulnerabilities_spec.rb#L11 Quality::Seeders::Vulnerabilities when project has members creates expected number of vulnerabilities 30.06 s < 27.12 s
        Edited by Ghost User
      • A deleted user added rspec:slow test detected label
      • Loading
      • Loading
      • Loading
      • Loading
      • Loading
      • Loading
      • Loading
      • Loading
      • Loading
      • Loading
      • Please register or sign in to reply
        Loading