[#15] [Backend] As a user, I can query keywords, [#16] [UI] As a user, I can query keywords, #45
Draft
mosharaf13 wants to merge 2 commits intodevelopfrom
Draft
[#15] [Backend] As a user, I can query keywords, [#16] [UI] As a user, I can query keywords, #45mosharaf13 wants to merge 2 commits intodevelopfrom
mosharaf13 wants to merge 2 commits intodevelopfrom
Conversation
|
Code coverage is now at 0.00% (0/93 lines) Generated by 🚫 Danger |
longnd
reviewed
Jun 16, 2023
Contributor
There was a problem hiding this comment.
The query condition in this PR is too simple. Pls check the requirement
At least, the following examples must be implemented
Allow users to query all the stored data across all their uploaded keyword.
Examples of the SQL queries which users can run:
- How many URLs contain the word
technologyin AdWords.- How many times a specific URL shows up in stored search results.
- How many keywords have URLs in stored search results with 2 or more
/or 1 or more>.
longnd
reviewed
Jun 16, 2023
| @pagy, @search_stats = pagy(current_user.search_stats) | ||
| search_keyword = params[:search_keyword] | ||
|
|
||
| if search_keyword.present? |
Contributor
There was a problem hiding this comment.
You should consider using Queries to organize the code to support complex queries
https://nimblehq.co/compass/development/code-conventions/ruby/ruby-on-rails/#convention-45
example https://github.com/nimblehq/mia-web/tree/development/engines/mia_campaign/app/queries/mia_campaign
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15
Closes #16
What happened 👀
Insight 📝
Proof Of Work 📹
Before search
After search