Skip to content

[usage] Extend server args with time-filtering #11612

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
merged 1 commit into from
Jul 25, 2022

Conversation

laushinka
Copy link
Contributor

@laushinka laushinka commented Jul 25, 2022

Description

Extends the server with time-filtering args.
The client sends number and then it gets converted in the server to google.protobuf.Timestamp.

Related Issue(s)

Relates #11526

How to test

Preview still renders and calls listBilledUsage with the time params (the websocket connection in the network tab).

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@laushinka laushinka force-pushed the laushinka/allow-users-to-switch-11526 branch 2 times, most recently from 9fe46f6 to 794eb5f Compare July 25, 2022 09:57
@laushinka laushinka force-pushed the laushinka/allow-users-to-switch-11526 branch from 794eb5f to 6bccc0b Compare July 25, 2022 09:57
@laushinka laushinka marked this pull request as ready for review July 25, 2022 09:57
@laushinka laushinka requested a review from a team July 25, 2022 09:57
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Jul 25, 2022
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-laushinka-allow-users-to-switch-11526.9 because the annotations in the pull request description changed
(with .werft/ from main)

@laushinka laushinka changed the title Extend server args with time-filtering [UBP] Extend server args with time-filtering Jul 25, 2022
@laushinka laushinka changed the title [UBP] Extend server args with time-filtering [usage] Extend server args with time-filtering Jul 25, 2022
@roboquat roboquat merged commit e163181 into main Jul 25, 2022
@roboquat roboquat deleted the laushinka/allow-users-to-switch-11526 branch July 25, 2022 11:07
@@ -293,7 +293,7 @@ export interface GitpodServer extends JsonRpcServer<GitpodClient>, AdminServer,
getSpendingLimitForTeam(teamId: string): Promise<number | undefined>;
setSpendingLimitForTeam(teamId: string, spendingLimit: number): Promise<void>;

listBilledUsage(attributionId: string): Promise<BillableSession[]>;
listBilledUsage(attributionId: string, from?: number, to?: number): Promise<BillableSession[]>;
Copy link
Member

Choose a reason for hiding this comment

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

FYI, you can also pass in arguments for ordering, in case you wanted to implement ascending/descending

@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants