-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add support for tags #10
base: master
Are you sure you want to change the base?
Conversation
thank you! i like the i am not familiar with the tag search API (it didn't exist back then) so i dont know much about the |
Thank you! That works for me
It looks like it uses the same code path as the posts endpoint, so the Lines 388 to 392 in 236bac4
|
I'm happy with where this is now. Let me know what 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.
pretty cool! looking mostly good to me, just minor nitpicks (also minor conflicts)
regarding the mocked data (in tests and json files), i'd prefer using SFW data, please 😅
src/client.rs
Outdated
Self::Page(p) => write!(f, "{}", p), | ||
Self::Before(p) => write!(f, "b{}", p), | ||
Self::After(p) => write!(f, "a{}", p), |
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.
Self::Page(p) => write!(f, "{}", p), | |
Self::Before(p) => write!(f, "b{}", p), | |
Self::After(p) => write!(f, "a{}", p), | |
Self::Page(p) => write!(f, "{p}"), | |
Self::Before(p) => write!(f, "b{p}"), | |
Self::After(p) => write!(f, "a{p}"), |
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.
Should I also add rust-version = "1.58"
to Cargo.toml
?
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.
oh maybe, i didn't check what the msrv is
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.
Looks like it'd be around 1.70
because of some dependencies.
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.
yeah that seems okay to be honest?
I've added |
Here's my attempt at adding support for tags. It isn't entirely complete yet, but I wanted to get your opinion before moving forward.
I've gone with a builder pattern for
tags::Query
, but differently thanPoolSearch
. If you like it, I can update everything to the same style.Outstanding Tasks:
Cursor
logictags::Query
(and everything else.)