-
Notifications
You must be signed in to change notification settings - Fork 6
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
Updating search feature #140
base: main
Are you sure you want to change the base?
Conversation
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.
LGTM
Signed-off-by: Ido Yekutiel <[email protected]>
it needs to be connected to the search bar from |
@guybeckenstein I will do it in a different PR, opened an issue for it #141 |
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.
LGTM
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.
LGTM
Signed-off-by: Ido Yekutiel <[email protected]>
SearchHistory/test_search_page.py
Outdated
professional = make_professional() | ||
typeOfjobs_by_pro = TypeOfJob.get_typeofjobs_by_professional(professional_id=professional.professional_id) | ||
client.force_login(professional.profile_id.user_id) | ||
url = reverse('show professional', args=[PROFESSIONAL_ID]) |
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.
Please avoid hardcode
You should test it through the data exist in tests and operations
You should get the url different way
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.
@Yarboa Done and merged with main
SearchHistory/test_search_page.py
Outdated
response = client.post(url, data) | ||
|
||
assert response.status_code == 200 | ||
assert 'account/business_page.html' in response.templates[0].name |
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.
Is there ant data to assert?
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.
@Yarboa Done and merged with main
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.
LGTM
@OfirBachar and I updated search.html and css to fit to the application style.
When pressing "Open" button on a professional box, now it not only add him to the client's search history, but also redirect to the chosen professional's page.
We've also added a test that checks the redirection to the relevant professional's page.
Here is a picture with the new style:
![image](https://private-user-images.githubusercontent.com/100145418/244363820-31d15306-16bf-4f32-9d5e-a5b1012af05e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNTY3ODcsIm5iZiI6MTczOTI1NjQ4NywicGF0aCI6Ii8xMDAxNDU0MTgvMjQ0MzYzODIwLTMxZDE1MzA2LTE2YmYtNGYzMi05ZDVlLWE1YjEwMTJhZjA1ZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMVQwNjQ4MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNDgzZTUzOWFmZmIzNzI2ZjdkZDgwOTAyNzYyODVjMDJmMGRkMTc3ZjI1NjM4ZjkwNDc4MWEzM2YzOGVkMzMxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.5RBXbZefxA-nKCLju5KUOySDCghP3lk1BQWUDR769Gg)
Resolves #139