Skip to content

Conversation

waliamehak
Copy link
Contributor

Fixes:

  1. Made updateCache() async to avoid blocking.
  2. Added null-safe default for autocompleteGHIssueCache as asked.

Also did:

  1. Added null-safe default for lastCacheUpdate (Instant.EPOCH) to prevent NPE.
  2. Fixed cache refresh logic by using isBefore (only refresh when stale).

@waliamehak waliamehak requested a review from a team as a code owner August 29, 2025 13:13
@CLAassistant
Copy link

CLAassistant commented Aug 29, 2025

CLA assistant check
All committers have signed the CLA.

@waliamehak
Copy link
Contributor Author

Hey @Zabuzard, could you please review this PR?

@Zabuzard Zabuzard linked an issue Aug 29, 2025 that may be closed by this pull request
@Zabuzard
Copy link
Member

Great stuff, thanks. I'll have a closer look later but looks good so far 👍

@waliamehak
Copy link
Contributor Author

Hey @Alathreon, I guess #1317 means this fix is not needed anymore? so, should i close this? Pretty neat solution btw.

@Alathreon
Copy link
Contributor

Hello @waliamehak
No, this is still needed.

@Zabuzard
Copy link
Member

Zabuzard commented Sep 1, 2025

Hey @Alathreon, I guess #1317 means this fix is not needed anymore? so, should i close this? Pretty neat solution btw.

We want both. The code being blocking is not "correct". The page size being suboptimal isnt good either. Both have to be tackled :)

@waliamehak
Copy link
Contributor Author

Hi @Zabuzard, updated the commit accordingly. Let me know if everything is up to speed now :)

@Zabuzard
Copy link
Member

Zabuzard commented Sep 4, 2025

@waliamehak waliamehak force-pushed the develop branch from 15db2a7 to 11671ea 18 hours ago

FYI after a code review has started, force-push should not be done anymore. The problem is that a force-push changes commit history. So GitHub cannot tell me now anymore which commits I already reviewed and which contain actual new changes.

Like, If I click on "rewiew commits since my last review" I now get this:

error

So I have to essentially restart my review from scratch now, instead of doing it incremental. Fortunately, this PR is relatively small so its not that big of a deal. But you gotta keep that in mind 👍

Better not do any force-push after you received a CR anymore and just do regular merges at that point 🙂

Zabuzard
Zabuzard previously approved these changes Sep 4, 2025
@Zabuzard Zabuzard added the enhance command Modify or improve an existing command or group of commands of the bot label Sep 4, 2025
@Zabuzard
Copy link
Member

Zabuzard commented Sep 4, 2025

@waliamehak Looks like the file has a minor spotless/style issue. Running gradle spotlessApply would probably autofix it 🙂
(we can also do it for you if you prefer that)

@waliamehak
Copy link
Contributor Author

Thanks, @Zabuzard, I'll avoid force pushes in the future. Also, Spotless fails on some pre-existing _ identifiers, these are not changes from this PR so ignoring these so we can proceed with review; all other formatting issues are clean.

@Zabuzard
Copy link
Member

Zabuzard commented Sep 5, 2025

Thanks, @Zabuzard, I'll avoid force pushes in the future.

Only after a CR. Before a CR they are completely fine 👍

Also, Spotless fails on some pre-existing _ identifiers, these are not changes from this PR so ignoring these so we can proceed with review;

Not on my end, mh... Sounds like you are potentially on the wrong Java version somewhere, as this was a very recent addition.

all other formatting issues are clean.

Great, thanks for your efforts! 🙂

@Zabuzard Zabuzard merged commit b905efb into Together-Java:develop Sep 5, 2025
9 checks passed
@waliamehak
Copy link
Contributor Author

@Zabuzard, you are right. Switching to JDK 24 resolves them :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance command Modify or improve an existing command or group of commands of the bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHubCommand Autocomplete Cache is blocking
4 participants