feat: deduplicate keywords automatically before trying to register token#277
feat: deduplicate keywords automatically before trying to register token#277thephez wants to merge 1 commit into
Conversation
WalkthroughA deduplication step was added to the Changes
Assessment against linked issues
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
I think it would be better to throw an error in the UI rather than quietly removing the duplicate keyword @thephez |
If we throw an error it needs to be clear as to why it's present. The error currently reported is not clear when it's due to clicking Searchable AND putting the token name in the keyword list. This is because it's not intuitively obvious that the "Searchable" checkbox adds the token name to the keyword list - the UI doesn't show this. It took me about 15 minutes to figure out that was what was happening. What do you think the error message should be? IMO there probably would need to be at least 2 error messages. One for the case where the error is happening because they've checked the Searchable box and one for everything else. |
Uses a hash set to make sure the token keyword list is unique (automatically excludes duplicates).
Closes #275
Summary by CodeRabbit