Skip to content
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

Add listReport #1053

Merged
merged 1 commit into from
Jun 13, 2023
Merged

Add listReport #1053

merged 1 commit into from
Jun 13, 2023

Conversation

riemanli
Copy link
Contributor

@riemanli riemanli commented Jun 7, 2023

No description provided.

@riemanli riemanli mentioned this pull request Jun 7, 2023
@wfa-reviewable
Copy link

This change is Reviewable

This was referenced Jun 7, 2023
@riemanli
Copy link
Contributor Author

riemanli commented Jun 7, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@riemanli riemanli force-pushed the riemanli_v2alpha_get_report branch from b45b3d4 to dd758fd Compare June 8, 2023 04:09
@riemanli riemanli force-pushed the riemanli_v2alpha_list_reports branch from d424bbd to 3e77336 Compare June 8, 2023 04:10
@riemanli riemanli marked this pull request as ready for review June 8, 2023 04:10
Base automatically changed from riemanli_v2alpha_get_report to main June 8, 2023 04:17
Copy link
Contributor

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jcorilla and @riemanli)


src/main/kotlin/org/wfanet/measurement/reporting/service/api/v2alpha/ReportsService.kt line 344 at r2 (raw file):

      }

      val metrics: List<Metric> =

You don't need this. You already have the map so externalIdToMetricMap.values would work.

Copy link
Contributor Author

@riemanli riemanli left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jcorilla and @tristanvuong2021)


src/main/kotlin/org/wfanet/measurement/reporting/service/api/v2alpha/ReportsService.kt line 344 at r2 (raw file):

Previously, tristanvuong2021 (Tristan Vuong) wrote…

You don't need this. You already have the map so externalIdToMetricMap.values would work.

This is for the case of listReports. The externalIdToMetricMap provided from listReports is for all metrics used across reports, so I need to get the list of metrics that are just for the specific report.

Copy link
Contributor

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jcorilla)

@riemanli riemanli force-pushed the riemanli_v2alpha_list_reports branch from 3e77336 to 1bfde43 Compare June 8, 2023 21:12
Copy link
Contributor

@Marco-Premier Marco-Premier left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 3 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @jcorilla, @riemanli, and @stevenwarejones)


src/main/kotlin/org/wfanet/measurement/reporting/service/api/v2alpha/ReportsService.kt line 718 at r3 (raw file):

  val isValidPageSize =
    source.pageSize != 0 && source.pageSize >= MIN_PAGE_SIZE && source.pageSize <= MAX_PAGE_SIZE

nit this could be simplified: source.pageSize in 1..MAX_PAGE_SIZE

Code quote:

source.pageSize != 0 && source.pageSize >= MIN_PAGE_SIZE && source.pageSize <= MAX_PAGE_SIZE

@riemanli riemanli force-pushed the riemanli_v2alpha_list_reports branch from 1bfde43 to 66693c0 Compare June 9, 2023 17:19
Copy link
Contributor Author

@riemanli riemanli left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 4 files reviewed, all discussions resolved (waiting on @jcorilla, @Marco-Premier, @stevenwarejones, and @tristanvuong2021)


src/main/kotlin/org/wfanet/measurement/reporting/service/api/v2alpha/ReportsService.kt line 718 at r3 (raw file):

Previously, Marco-Premier (marcopremier) wrote…

nit this could be simplified: source.pageSize in 1..MAX_PAGE_SIZE

Thanks for the suggestion! Done.

@riemanli riemanli requested a review from Marco-Premier June 9, 2023 17:20
Copy link
Contributor

@tristanvuong2021 tristanvuong2021 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jcorilla, @Marco-Premier, and @stevenwarejones)

Copy link
Contributor

@Marco-Premier Marco-Premier left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jcorilla and @stevenwarejones)

@riemanli riemanli force-pushed the riemanli_v2alpha_list_reports branch from 66693c0 to f3b6495 Compare June 13, 2023 16:56
@riemanli riemanli enabled auto-merge (squash) June 13, 2023 16:58
@riemanli riemanli merged commit 01e99ef into main Jun 13, 2023
@riemanli riemanli deleted the riemanli_v2alpha_list_reports branch June 13, 2023 17:04
ple13 pushed a commit that referenced this pull request Aug 16, 2024
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