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

Feature/14 search #19

Merged
merged 13 commits into from
Nov 23, 2023
Merged

Feature/14 search #19

merged 13 commits into from
Nov 23, 2023

Conversation

Pdzly
Copy link
Member

@Pdzly Pdzly commented Nov 21, 2023

Added Search capability.

Implemented /api/v3/search

Implemented New / Old Sorting
Implemented Pagination / Limit ( MAX 20 Lemmy default )
Implemented All/Post/Comment/Url/Community/User searches

closes #14

@Pdzly Pdzly requested review from TheJuki and jgrim November 21, 2023 21:30
@Pdzly Pdzly self-assigned this Nov 21, 2023
@Pdzly
Copy link
Member Author

Pdzly commented Nov 22, 2023

I removed not necessary left joins from the count query as it isnt required in any way.

@Pdzly Pdzly added the enhancement New feature or request label Nov 22, 2023
@Pdzly Pdzly requested a review from TheJuki November 23, 2023 15:05
@Pdzly
Copy link
Member Author

Pdzly commented Nov 23, 2023

@TheJuki i never worked with the @Apiresponse i hope i did it right.

@@ -50,7 +50,22 @@ public String getPostMd5Hash(final Post post) {
}
}

public Person getPostCreator(final Post post) {
public String getStringMd5Hash(final String post) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the same method I implemented just copied?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so we should move them both to a shared public utility

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The core logic is literally the same but i find it a bit overkill to require the WHOLE Post THEN just using the url.

@jgrim jgrim merged commit 3147deb into main Nov 23, 2023
1 check passed
@jgrim jgrim deleted the feature/14-search branch November 23, 2023 19:33
@jgrim jgrim unassigned Pdzly Dec 8, 2023
Pdzly pushed a commit that referenced this pull request May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search
3 participants