Skip to content

Comments

feat(nimbus): Add Sorting to the QA Runs table on the feature health page.#13742

Merged
b4handjr merged 3 commits intomainfrom
exp-5800-qa-sorting
Oct 24, 2025
Merged

feat(nimbus): Add Sorting to the QA Runs table on the feature health page.#13742
b4handjr merged 3 commits intomainfrom
exp-5800-qa-sorting

Conversation

@b4handjr
Copy link
Contributor

Because

  • We need to add sorting to the QA Runs table on the feature health page

This commit

  • Adds sorting to the QA Runs Table
  • Adds 2 new model fields to the experiment model to keep track of QA runs and dates.

Fixes #13708

@b4handjr b4handjr force-pushed the exp-5800-qa-sorting branch 3 times, most recently from ad491a6 to 1522506 Compare October 21, 2025 22:24
@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13711-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

1 similar comment
@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13711-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

@b4handjr
Copy link
Contributor Author

This is blocked on #13711

@b4handjr b4handjr force-pushed the exp-5800-qa-sorting branch 4 times, most recently from 5ad75b0 to 14d8383 Compare October 22, 2025 20:40
@b4handjr
Copy link
Contributor Author

Date sorting:
image

Type sorting:
image

@b4handjr b4handjr removed the Blocked label Oct 22, 2025
@b4handjr b4handjr marked this pull request as ready for review October 22, 2025 21:02
@yashikakhurana yashikakhurana added the preview Create Preview Environment label Oct 22, 2025
@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13742-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

1 similar comment
@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13742-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

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

In general looking good noticed two things, one on click of the links test plan and test rail results opening up empty page again on new window, I thought we fixed that earlier
Screenshot 2025-10-22 at 3 11 07 PM
Also both the tables are missing tooltips, if you can add them or file ticket for that. Another things on QA table deliveries open up on the same page as they should but feature table still opens up it on the new tab. Sorting working 💯

@b4handjr
Copy link
Contributor Author

In general looking good noticed two things, one on click of the links test plan and test rail results opening up empty page again on new window, I thought we fixed that earlier.

You want the test rail/testplan links to open in the current page? I dont really like that flow, as what if someone wants to open multiple test plans for 1 feature?

Also both the tables are missing tooltips, if you can add them or file ticket for that. Another things on QA table deliveries open up on the same page as they should but feature table still opens up it on the new tab. Sorting working 💯

Yes the tooltips are filed in another ticket, ill get to that this week since it's a small change. And yes about the open in new page, I can fix that with the tooltip since ill be working on that table.

@@ -0,0 +1,33 @@
# Generated by Django 5.2.7 on 2025-10-22 19:44
Copy link
Member

Choose a reason for hiding this comment

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

I think you need to run ruff format on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ran make format and I don't see any errors on CI 🤷🏾

Copy link
Member

Choose a reason for hiding this comment

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

adorable!

default=list,
)
tags = models.ManyToManyField(Tag, blank=True, related_name="experiments")
qa_run_date = models.DateField("QA Run Date", blank=True, null=True, default=None)
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we want both blank and null as valid values for these fields. I believe Django forms work better with blank=true and a default value of "" instead of trying to make null the "empty" value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how other fields are done currently.. should I change it now and file something to update the rest?

@yashikakhurana
Copy link
Contributor

In general looking good noticed two things, one on click of the links test plan and test rail results opening up empty page again on new window, I thought we fixed that earlier.

You want the test rail/testplan links to open in the current page? I dont really like that flow, as what if someone wants to open multiple test plans for 1 feature?

Also both the tables are missing tooltips, if you can add them or file ticket for that. Another things on QA table deliveries open up on the same page as they should but feature table still opens up it on the new tab. Sorting working 💯

Yes the tooltips are filed in another ticket, ill get to that this week since it's a small change. And yes about the open in new page, I can fix that with the tooltip since ill be working on that table.

agree to open up in new tab that's a valid point, but links are not working right now, and if somebody clicks it is opening up the empty feature page, can you fix that?

Comment on lines 3655 to 3659
[NimbusExperiment.QATestType.FULL, "Full"],
[NimbusExperiment.QATestType.SMOKE, "Smoke"],
[NimbusExperiment.QATestType.SELF, "Self"],
[NimbusExperiment.QATestType.REGRESSION, "Regression"],
]
Copy link
Contributor

Choose a reason for hiding this comment

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

for the text like Full etc etc you can .value QATestType(models.TextChoices):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Beth gave me a suggestion I implemented

@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13742-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13742-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

@yashikakhurana
Copy link
Contributor

@b4handjr can you file a ticket to update the deliveries table too like you did for QA when no deliveries are available-same styling
Screenshot 2025-10-23 at 10 40 18 AM

Comment on lines 228 to 237
</td>
<td id="qa-test-plan">
<a href="{{ experiment.qa_run_test_plan }}">Test Plan Link</a>
</td>
<td id="qa-testrail-link" class="col-2">
<a href="{{ experiment.qa_run_testrail_link }}">TestRail Link</a>
</td>
{% empty %}
<tr>
<td colspan="11" class="text-center text-muted py-5">No QA runs</td>
Copy link
Contributor

Choose a reason for hiding this comment

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

clicking on those still opening empty features page https://pr13742-experimenter.preview.mozilla.cloud/nimbus/features/None

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh you want me to remove the actual link, okay sorry, misunderstood

Copy link
Contributor

Choose a reason for hiding this comment

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

not remove the link, it should be like if we dont have a link it should say not set something like that, or it should be only highlighted if we have links available, like how on all deliveries page if results links are not available we say n/a and if available we show the link

@b4handjr b4handjr force-pushed the exp-5800-qa-sorting branch 2 times, most recently from 4ca3e06 to 48e89fb Compare October 23, 2025 18:18
@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13742-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

1 similar comment
@mozcloud-preview-environments

Preview environment has been deployed.

Preview URL: https://pr13742-experimenter.preview.mozilla.cloud

It may take up to 5 minutes for the environment to become available.
If the link doesn't work immediately, please wait a few moments and try again.

You can monitor deployment status in Argo CD.

@b4handjr b4handjr force-pushed the exp-5800-qa-sorting branch from 48e89fb to c4822ef Compare October 23, 2025 19:14
@b4handjr
Copy link
Contributor Author

b4handjr commented Oct 23, 2025

I had to run makemigrations again due to a PR that had the same number for their migration file.

@b4handjr b4handjr enabled auto-merge October 23, 2025 22:14
@yashikakhurana yashikakhurana added preview Create Preview Environment and removed preview Create Preview Environment labels Oct 24, 2025
Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

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

Tested everything locally, working fine thanks @b4handjr for some reason preview mode is not working so it took extra time to review and do the set up

@b4handjr b4handjr added this pull request to the merge queue Oct 24, 2025
Merged via the queue into main with commit 2cb567d Oct 24, 2025
17 of 18 checks passed
@b4handjr b4handjr deleted the exp-5800-qa-sorting branch October 24, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Create Preview Environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add sorting to QA runs table

3 participants