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

APIGOV-28410 usage reports on schedule #826

Merged
merged 7 commits into from
Sep 30, 2024
Merged

APIGOV-28410 usage reports on schedule #826

merged 7 commits into from
Sep 30, 2024

Conversation

alrosca
Copy link
Collaborator

@alrosca alrosca commented Sep 4, 2024

No description provided.

jcollins-axway
jcollins-axway previously approved these changes Sep 9, 2024
@@ -233,8 +235,11 @@ func (c *usagePublisher) Ready() bool {

// Execute - process the offline report generation
func (c *usagePublisher) Execute() error {
if c.offline {
return c.report.saveReport()
if c.report.shouldPublish(c.schedule) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we move down this check to limit only sendReport and not to saveReport?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it could make sense how it is, as then offline reports will not be updated any extra either. Thoughts?

@vivekschauhan vivekschauhan merged commit 5f992f8 into main Sep 30, 2024
2 checks passed
@vivekschauhan vivekschauhan deleted the APIGOV-28410 branch September 30, 2024 17:00
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.

3 participants