Skip to content

feat: [OCISDEV-1437] show suggested expiry date of 30 days, tests - #12988

Open
mklos-kw wants to merge 2 commits into
masterfrom
feat/ocisdev-1437
Open

mklos-kw wants to merge 2 commits into
masterfrom
feat/ocisdev-1437

Conversation

@mklos-kw

Copy link
Copy Markdown
Member

Description

Related Issue

  • Fixes <issue_link>

Motivation and Context

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

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 Sep 23, 2026

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.

@kw-security

kw-security commented Sep 23, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mklos-kw
mklos-kw marked this pull request as ready for review September 30, 2026 11:45
@mklos-kw
mklos-kw requested a review from a team as a code owner September 30, 2026 11:45
| permissions | all |
| stime | A_NUMBER |
| parent | |
| expiration | |

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.

Now expiration date will be non-empty and relative so removed from assert since test subject is different than expiration date.

parseDriveIDErrMsg = "could not parse driveID"

// default expiration for user/group shares created without one; space memberships are exempt
defaultShareExpirationDays = 30

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.

Should it be configurable?

switch {
case invite.ExpirationDateTime != nil:
shareExpiration = utils.TimeToTS(*invite.ExpirationDateTime)
case !IsSpaceRoot(statResponse.GetInfo().GetId()):

@2403905 2403905 Sep 30, 2026 •

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 don't quite understand why you force every invite to have an expiration date. It's not correct. The task description sounds "When sharing files from the SAFE, all shares that are being created should have a suggested expiration date of 30 days. This value can be overridden by the creator, but the suggestion should be there all the same. "

This branch has not been deployed

No deployments
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.

4 participants