Skip to content

fix: LastModifiedDate in collaboration service - #11328

Merged
mklos-kw merged 1 commit into
masterfrom
fix/ocisdev-10
May 21, 2025
Merged

mklos-kw merged 1 commit into
masterfrom
fix/ocisdev-10

Conversation

@mklos-kw

@mklos-kw mklos-kw commented May 19, 2025 •

Copy link
Copy Markdown
Member

Description

Fix regression in collaboration service, missing LastModifiedDate

Related Issue

  • Fixes issue OCISDEV-10

Motivation and Context

How Has This Been Tested?

  • collaboration unit tests

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@update-docs

update-docs Bot commented May 19, 2025

Copy link
Copy Markdown

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@mklos-kw
mklos-kw force-pushed the fix/ocisdev-10 branch 3 times, most recently from d735e17 to ffc1aa2 Compare May 19, 2025 16:47
@mklos-kw
mklos-kw requested a review from 2403905 May 19, 2025 16:48
@mklos-kw
mklos-kw requested a review from jvillafanez May 20, 2025 07:41

lastModifiedTime := time.Now().UTC().Format(timeFormat)
if statRes.GetInfo().GetMtime() != nil {
lastModifiedTime = time.Unix(int64(statRes.GetInfo().GetMtime().GetSeconds()), 0).UTC().Format(timeFormat)

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.

Why do we ignore the GetNanos() if the template supports the micro seconds? "2006-01-02T15:04:05.0000000Z"

@mklos-kw mklos-kw May 20, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Nanos can be added. In the test case the Version looks like ignoring Nanos too and may change in test including Nanos. I need to double check in MS reference.

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.

@sonarqubecloud

Copy link
Copy Markdown

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.

3 participants