Repository navigation
feat: list only unread product updates, 10 at most, with --dismiss - #1378
Conversation
|
Claude finished @mbevc1's task in 1m 26s —— View job Follow-up review summary
Both previous findings are resolved (both review threads are confirmed marked resolved on GitHub):
Also reviewed the No new bugs or regressions found in the changed lines — 0 new inline comments. (Note: I don't have the ability to run |
af6691d to
a7cf267
Compare
Follow-up review summaryBoth previous findings are resolved in the latest commit (both review threads were already marked resolved):
No new bugs or regressions found in the changed lines — 0 new inline comments. |
kosli list product-updates answered 'what is new for me?' with a list that was mostly updates already read. It now lists only unread updates; --all lists the read ones too. The Kosli app now shows at most 10 product updates, so the CLI lists the same 10 unless --limit says otherwise; --limit 0 means no limit. --all and --limit apply to the table and to JSON, and the table says when more exist. --dismiss marks the unread updates listed as seen. Listing does not do that by default, as the app does on opening its dropdown: the command also runs in scripts and pipes, where it would use up a user's unread updates unseen. The help also said a first listing marks every update as seen. The server now does that only for users who signed up less than 7 days before, so existing users see the last 12 months as unread.
a7cf267 to
8e54468
Compare
Follows the web app changes in kosli-dev/server#8051 and kosli-dev/server#8039. The API is unchanged; this aligns the behaviour and help text of
kosli list product-updateswith the app.--alllists the read ones too.--limit Nchanges that and--limit 0means no limit.--dismiss. Marks the unread updates listed as seen, in one step. Listing does not do that by default: the command also runs in scripts and pipes, where it would use up a user's unread updates unseen.--alland--limitapply to the table and to--output json. The table footer says when more updates exist than are shown.The help text also said a first listing marks every update as seen. Since kosli-dev/server#8039 the server does that only for users who signed up less than 7 days before, so that sentence is corrected.
kosli dismiss product-updates --allis unchanged and still dismisses every unread update.This changes the default output of a beta command merged in #1374.
Checklist
charts/k8s-reporter/) updated, if needed. Note: these changes live in a separate PR (not needed)