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

#9103 No update button for pinned deployments #9140

Merged
merged 12 commits into from
Sep 12, 2024

Conversation

mnholtz
Copy link
Collaborator

@mnholtz mnholtz commented Sep 11, 2024

What does this PR do?

Demo

https://www.loom.com/share/a16175dd5bb945309f325b110ef78559

@mnholtz mnholtz changed the title Feature/9103 no update button for pinned deployments #9103 No update button for pinned deployments Sep 11, 2024
}

if (semver.lt(current.version, activated.version)) {
// TODO: In what case would the current version be less than the activated version?
Copy link
Collaborator Author

@mnholtz mnholtz Sep 11, 2024

Choose a reason for hiding this comment

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

When refactoring, this logic came to my attention 🤔 Anyone know what this could be handling?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably no case, just completionist

Copy link
Collaborator Author

@mnholtz mnholtz Sep 11, 2024

Choose a reason for hiding this comment

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

Sort-of-related refactor (I initially though my logic would go here)

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.78%. Comparing base (8318d74) to head (7d59f01).
Report is 287 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9140      +/-   ##
==========================================
+ Coverage   74.24%   74.78%   +0.53%     
==========================================
  Files        1332     1349      +17     
  Lines       40817    41745     +928     
  Branches     7634     7787     +153     
==========================================
+ Hits        30306    31220     +914     
- Misses      10511    10525      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Sep 12, 2024

Playwright test results

passed  124 passed
flaky  4 flaky
skipped  4 skipped

Details

report  Open report ↗︎
stats  132 tests across 44 suites
duration  11 minutes, 45 seconds
commit  7d59f01
info  For more information on how to debug and view this report, see our readme

Flaky tests

msedge › tests/extensionConsole/activation.spec.ts › can activate a mod with a database
chrome › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod
msedge › tests/pageEditor/addStarterBrick.spec.ts › Add starter brick to mod
chrome › tests/pageEditor/copyMod.spec.ts › run a copied mod with a built-in integration

Skipped tests

chrome › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
msedge › tests/regressions/doNotCloseSidebarOnPageEditorSave.spec.ts › #8104: Do not automatically close the sidebar when saving in the Page Editor
chrome › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options
msedge › tests/runtime/googleSheetsIntegration.spec.ts › can activate a google spreadsheet mod with config options

@twschiller twschiller added the bug Something isn't working label Sep 12, 2024
@@ -88,7 +90,7 @@ const Status: React.VoidFunctionComponent<{
);
}

if (hasUpdate && showReactivate) {
if (hasUpdate && showReactivate && !(sharingSource.type === "Deployment")) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the fix

return (
<Button
size="sm"
variant="info"
className="text-nowrap"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unrelated fix to the wrapping issue on the Update button
Screenshot 2024-09-12 at 11 22 37 AM

@@ -87,6 +87,44 @@ describe("Status", () => {
expect(screen.getByText("Update")).toBeInTheDocument();
});

it("doesn't show update button for deployments", () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: I'd be more specific and name this test "doesn't show update button for team deployments"

Copy link

When the PR is merged, the first loom link found on this PR will be posted to #sprint-demo on Slack. Do not edit this comment manually.

@mnholtz mnholtz merged commit dccfd89 into main Sep 12, 2024
20 checks passed
@mnholtz mnholtz deleted the feature/9103_no_update_button_for_pinned_deployments branch September 12, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mods screen shows "update" button for team deployments
4 participants