Skip to content

feat: Add sortable field to created interruption and service message#1821

Merged
ATGardner merged 5 commits intomainfrom
noamgal/md-1571-add-sortable-field-to-created-interruption-and-service
Mar 31, 2026
Merged

feat: Add sortable field to created interruption and service message#1821
ATGardner merged 5 commits intomainfrom
noamgal/md-1571-add-sortable-field-to-created-interruption-and-service

Conversation

@ATGardner
Copy link
Copy Markdown
Contributor

Enhance the ArgoCD reporting functionality by including a timestamp for each updated source detail. This change ensures that the commit timestamp is captured and serialized in the output, providing better traceability and context for deployments.

Updated relevant classes and methods to accommodate the new timestamp parameter, ensuring consistency across the reporting and output variables.

relevant server changes are being made in https://github.com/OctopusDeploy/OctopusDeploy/pull/41188 pr

⚠️ Does this change require a corresponding Server Change?
⚠️ If so - please add a "Requires Server Change" label to this PR!

@ATGardner ATGardner self-assigned this Mar 9, 2026
@ATGardner ATGardner force-pushed the noamgal/md-1571-add-sortable-field-to-created-interruption-and-service branch from f27c046 to e111f9e Compare March 22, 2026 10:37
@ATGardner ATGardner force-pushed the noamgal/md-1571-add-sortable-field-to-created-interruption-and-service branch 2 times, most recently from 9563420 to 9e32aa9 Compare March 26, 2026 08:30

public record UpdatedSourceDetail(
string CommitSha,
DateTimeOffset CommitTimestamp,
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.

I think it makes sense for the timestamp to be null if we don't have one, convert it to some value on the Server side if needed

namespace Calamari.ArgoCD.Conventions.ManifestTemplating;

public record ManifestUpdateResult(bool Updated, string CommitSha, List<FilePathContent> ReplacedFiles); No newline at end of file
public record ManifestUpdateResult(bool Updated, string CommitSha, DateTimeOffset CommitTimestamp, List<FilePathContent> ReplacedFiles); No newline at end of file
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.

Make timestamp nullable

Copy link
Copy Markdown
Contributor

@flin-8 flin-8 left a comment

Choose a reason for hiding this comment

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

Looks good, just the comment re: nullable timestamp

@ATGardner ATGardner force-pushed the noamgal/md-1571-add-sortable-field-to-created-interruption-and-service branch 3 times, most recently from f39b6e5 to b18824d Compare March 31, 2026 09:14
Enhance the ArgoCD reporting functionality by including a timestamp
for each updated source detail. This change ensures that the commit
timestamp is captured and serialized in the output, providing better
traceability and context for deployments.

Updated relevant classes and methods to accommodate the new timestamp
parameter, ensuring consistency across the reporting and output
variables.
Refactor the handling of commit timestamps in the ArgoCD reporting
tests and related classes. Change the `CommitTimestamp` property
to be nullable and update relevant usages to accommodate this
change. This improves the flexibility of the reporting system
when no commit timestamp is available.
@ATGardner ATGardner force-pushed the noamgal/md-1571-add-sortable-field-to-created-interruption-and-service branch from b18824d to c943a03 Compare March 31, 2026 10:36
@ATGardner ATGardner merged commit 3285742 into main Mar 31, 2026
32 checks passed
@ATGardner ATGardner deleted the noamgal/md-1571-add-sortable-field-to-created-interruption-and-service branch March 31, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants