Skip to content

Show Archived Deployments#772

Merged
Zayn-Javed merged 9 commits into
mainfrom
show-archived-deployments
Jun 26, 2026
Merged

Show Archived Deployments#772
Zayn-Javed merged 9 commits into
mainfrom
show-archived-deployments

Conversation

@jjoderis

Copy link
Copy Markdown
Contributor

Summary

Added an option to view all past deployments of a all processes in a space even when the the deployments or the process itself have been removed(/archived).

Details

  • added a checkbox to the deployment list that allows users to opt into seeing deployments that have already been removed
  • removed the filtering of removed deployments in the instance view to allow users to see all instances of a process even when the deployments from which the instance has been spawned have been removed from the respective engines
  • the instance view shows all executable versions of a process even when they have never been deployed
  • changed the instance start behavior in the instance view to always start an instance of the currently selected version instead of always using the latest version
    • if the version is currently not deployed it will deployed automatically if an engine is available

@github-actions

This comment has been minimized.

…atic expansion in the left sidebar menu do not work anymore
@github-actions

This comment has been minimized.

pathname + '?' + createQueryString('archived', el.target.checked ? 'true' : ''),
)
}
>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

since toggling the checkbox would cause a full server re-render via navigation. and if I have understood it correctly, the list will briefly show the old data while the server renders the new result. A loading indicator during the navigation would improve the user experience.

Since useTransition is already imported and used in this file, may be for this you can add a new transition and wrap the router.push in the checkbox onChange

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've added a loading indicator to the checkbox and the table

if (isUserErrorResponse(versions)) return [];

// filter out all versions that are not executable
versions = await asyncFilter(versions, async (version) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

to be honest I am not sure whether I am right or not, or how much effort will it need to implement my suggestion. But fetching all version from db after every 1 second and then parsing it to BpmnObject seems very heavy and expensive (consider we have 7 versions of a large process).

so if I am not wrong then my suggestion is may be we can cash the result of each parse on first load and reuse it on every next refetch. because versions are immutable anyway and not gonna change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've added a simple caching implementation so each version will have its "executable" property calculated only once

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-772---ms-server-staging-c4f6qdpj7q-ew.a.run.app

@Zayn-Javed Zayn-Javed merged commit 4c3970f into main Jun 26, 2026
12 checks passed
@Zayn-Javed Zayn-Javed deleted the show-archived-deployments branch June 26, 2026 09:58
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