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

Updating search feature #140

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

idoyek
Copy link
Contributor

@idoyek idoyek commented Jun 7, 2023

@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

Resolves #139

Copy link
Contributor

@OfirBachar OfirBachar left a 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]>
@guybeckenstein
Copy link
Contributor

it needs to be connected to the search bar from base.html. please fix

@idoyek idoyek closed this Jun 7, 2023
@idoyek idoyek reopened this Jun 7, 2023
@idoyek
Copy link
Contributor Author

idoyek commented Jun 7, 2023

it needs to be connected to the search bar from base.html. please fix

@guybeckenstein I will do it in a different PR, opened an issue for it #141

Copy link
Contributor

@guybeckenstein guybeckenstein left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@TalReinfeld TalReinfeld left a 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]>
@idoyek idoyek added the CoreReview-Ready Ready for mentor review label Jun 8, 2023
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])
Copy link
Contributor

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

Copy link
Contributor Author

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

response = client.post(url, data)

assert response.status_code == 200
assert 'account/business_page.html' in response.templates[0].name
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

@Yarboa Yarboa left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CoreReview-Ready Ready for mentor review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updating search page
5 participants