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

Minor enhancement: use streams API in getNewestUpdates and getVersions #765

Merged

Conversation

jarmoniuk
Copy link
Contributor

@jarmoniuk jarmoniuk commented Oct 17, 2022

Uses Streams API to streamline some of the methods, more concise and more readable in my (subjective) opinion.

Does not need to be added to the upcoming release.

@jarmoniuk jarmoniuk changed the title Minor enhancement: add caching to getNewestUpdates in report renderers in AbstractVersionDetails Minor enhancement: add caching to getNewestUpdates in report renderers Oct 17, 2022
@jarmoniuk jarmoniuk force-pushed the abstract-version-details-refactor branch from 157c25c to bf37bea Compare October 17, 2022 07:09
@jarmoniuk jarmoniuk changed the title Minor enhancement: add caching to getNewestUpdates in report renderers Minor enhancement: use streams API in getNewestUpdates Oct 17, 2022
@jarmoniuk jarmoniuk changed the title Minor enhancement: use streams API in getNewestUpdates Minor enhancement: use streams API in getNewestUpdates and getVersions Oct 17, 2022
@sultan
Copy link
Contributor

sultan commented Oct 17, 2022

i believe streams are the way to go in 2022 👍
i'll have to rework my proposed new feature to make more concise reports, because i currently iterate over a treeset PR #731

@jarmoniuk jarmoniuk force-pushed the abstract-version-details-refactor branch from bf37bea to 9e1d044 Compare October 18, 2022 06:03
@sultan
Copy link
Contributor

sultan commented Oct 18, 2022

I wonder, Instead of sending null ranges, could we send noop filters. And functions to create them like filterForXxx. The goal would be to reduce the number of functions maybe. What do you think is best ?

@slawekjaranowski slawekjaranowski added this to the 2.13.0 milestone Oct 18, 2022
@slawekjaranowski slawekjaranowski merged commit 12ea57c into mojohaus:master Oct 18, 2022
@jarmoniuk jarmoniuk deleted the abstract-version-details-refactor branch October 18, 2022 14:34
@jarmoniuk
Copy link
Contributor Author

I wonder, Instead of sending null ranges, could we send noop filters. And functions to create them like filterForXxx. The goal would be to reduce the number of functions maybe. What do you think is best ?

@slawekjaranowski do you think we could have Discussions enabled here? 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants