Skip to content

feat: new field for list approvals#233

Open
lifosmin wants to merge 2 commits into
mainfrom
lifos/list_approvals_with_expiration
Open

feat: new field for list approvals#233
lifosmin wants to merge 2 commits into
mainfrom
lifos/list_approvals_with_expiration

Conversation

@lifosmin
Copy link
Copy Markdown

No description provided.

bool summary_labels = 61;
// If true, includes label summaries using faceted search: for each label key, available values are computed by applying all other active label filters except that key. Mutually exclusive with summary_labels.
bool summary_labels_v2 = 62;
// If true, populates previous_grant_expiration_date on each returned approval by looking up the latest grant matching the appeal's account_id, resource_id, and role.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

and group_id and group_type. You can update the comment.

// If true, populates previous_grant_expiration_date on each returned approval by looking up the latest grant matching the appeal's account_id, resource_id, and role.
bool with_previous_grant = 63;
// When set together with end_expiration_date, only returns approvals whose previous_grant_expiration_date falls within [start_expiration_date, end_expiration_date]. Requires with_previous_grant=true.
optional google.protobuf.Timestamp start_expiration_date = 64;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This will work if end_expiration_date is not given as well, right?

// - expired: the latest grant matching the appeal's (account_id, resource_id, role) has expiration_date < now.
// - expiring: the latest matching grant expires within expiring_within_days days from now (defaults to 7 when omitted).
// - none: no previous grant exists for the triple, or the latest grant is permanent (expiration_date IS NULL).
string previous_grant_state = 66;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It should be an array, in same request I would need for expired and expiring. Lets say currently there are 2 appeals
Appeal A1: Grant expired on 1st June
Appeal A2:Grant expiring on 5th June.
I need to show expiration_date for both.

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.

2 participants