Describe the change
Describe the change
Standardize the name of all the DateTime and TimeSpan based properties on classes and objects that are managed by the module.
Naming Convention:
- Specific Point in Time (timestamp)
- Pattern:
EventName + At
- Examples:
- Events Before or After a Specific Time (timestamp)
- Pattern:
EventName + Before or EventName + After
- Examples:
- Time Relative to a Given Time (timespan)
- In the future
- Pattern:
EventName + In
- Examples:
- In the past
- Pattern:
EventName + Ago
- Examples:
Calculation Rules:
- Ideally, both a timestamp and a timespan should be provided or calculated.
- If
ExpiresAt is provided, calculate ExpiresIn.
- If
ExpiresIn is provided, calculate ExpiresAt.
- If only one is available, the other should be derived.
Example situations to use this
- Token Expiration
- Refresh Token Expiration
- Rate Limit reset
- Creation time of a repo (back in time)
- Update time of a team (back in time)
Describe the change
Describe the change
Standardize the name of all the DateTime and TimeSpan based properties on classes and objects that are managed by the module.
Naming Convention:
EventName + AtExpiresAtResetAtEventName + BeforeorEventName + AfterResetBeforeExpiresAfterEventName + InExpiresInResetInEventName + AgoResetAgoExpiredAgoCalculation Rules:
ExpiresAtis provided, calculateExpiresIn.ExpiresInis provided, calculateExpiresAt.Example situations to use this