-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[chore][pkg/stanza] - finalize archive's implementation #38267
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
Conversation
0074e35
to
996c687
Compare
996c687
to
41dc51c
Compare
One thing remains i.e. to update EDIT: as of now, this PR includes documentation and enabled the config. If needed, we can separate it out. |
I'll add changelog in documentation PR, as that will enable the actual config. |
c4f722b
to
9a102d0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewing this PR was hard for me due to the complexity of the code. I'm worried that the code is getting even more complex with these changes. We should work on decreasing its complexity in future contributions.
maxBatches: c.MaxBatches, | ||
telemetryBuilder: telemetryBuilder, | ||
noTracking: o.noTracking, | ||
pollsToArchive: c.PollsToArchive, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will always be 0
because in line 92 the field PollsToArchive
is not mapped to a configuration setting. Is this intended?
PollsToArchive int `mapstructure:"-"` // TODO: activate this config once archiving is set up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrzej-stencel I've added documentation and enabled the config in line 92. Can you take a look when you have a moment?
527dc1f
to
433d3bd
Compare
433d3bd
to
cecb53e
Compare
I agree. I'll work on this part to reduce complexity of this specific piece of code. |
a8b9bda
to
3b65789
Compare
@andrzej-stencel @djaglowski we can break this PR into multiple ones, in following way:
let me know what do you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I too am struggling to make sense of this level of complexity. Usually my response to this is to make smaller, more testable, packages which try to do less. Would it make sense to implement the archive as a small separate package?
The handling of edge cases is elaborate. Can we start without them? (i.e. just reboot the archive under these rare circumstances)
@@ -0,0 +1,172 @@ | |||
# File archiving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This document is full of typos and inconsistent formatting. Please take a pass through to clean it up.
Thanks for you comment! |
@djaglowski |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
Superseded by #39901 |
This PR finalizes the archive implementation and adds test case.
@djaglowski I think we can add more sophisticated test cases once we establish common ground on the implementation.
Relates: #38056