-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add max duration to msteams plugin cards #54110
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
Merged
EdwardDowling
merged 13 commits into
master
from
edwarddowling/msteams-request-duration
Apr 29, 2025
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
341a4ef
Add max duration to msteams plugin cards
EdwardDowling 09545a1
Merge branch 'master' into edwarddowling/msteams-request-duration
EdwardDowling c58e919
Add test coverage to max_duration addition to plugindata
EdwardDowling 7128fd8
Merge branch 'master' into edwarddowling/msteams-request-duration
EdwardDowling 0fff468
Merge branch 'master' into edwarddowling/msteams-request-duration
EdwardDowling 922f198
Fix incorrect usage of maxDuration in msteams plugin
EdwardDowling 9a04b4e
Update integrations/lib/plugindata/access_request.go
EdwardDowling 9ed88f4
Fix error return from access request plugin data
EdwardDowling 21d02b9
Fix formating in plugindata tests
EdwardDowling 1ab23ea
Merge branch 'master' into edwarddowling/msteams-request-duration
EdwardDowling 3da8308
Update msteams plugin tests
EdwardDowling 27a0659
Merge branch 'master' into edwarddowling/msteams-request-duration
EdwardDowling 94621e2
Merge branch 'master' into edwarddowling/msteams-request-duration
EdwardDowling File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused by the type here. The name says "duration", but this is a "time" object. Should it be the access request end date, or a
time.Duration?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the the
// GetMaxDuration gets the maximum time at which the access should be approved for.I think we just call it maxDuration since we take it in as a duration usually and convert it to the target time on request creation to avoid having to store the duration and the time the duration is from.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, I never realized that we made this mistake 2 years ago when introducing max duration 🤦 .
MaxDuration on a role is indeed a duration, but because naming is hard we also named it MaxDuration on the access request even though it's a timestamp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although we did this error, can we at least rename this field to be LatestApprovalTime?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would changing the name only here make things clearer or would that just add to the existing confusion?