Skip to content

Updating search feature - #140

Open
idoyek wants to merge 9 commits into
redhat-beyond:mainfrom
idoyek:searchFeature
Open

Updating search feature#140
idoyek wants to merge 9 commits into
redhat-beyond:mainfrom
idoyek:searchFeature

Conversation

@idoyek

@idoyekidoyek commented Jun 7, 2023

Copy link
Copy Markdown
Contributor

@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

@OfirBacharOfirBachar left a comment

Copy link
Copy Markdown
Contributor

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 <idoyekutiel123@gmail.com>
@guybeckenstein

Copy link
Copy Markdown
Contributor

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

@idoyekidoyek closed this Jun 7, 2023
@idoyekidoyek reopened this Jun 7, 2023
@idoyek

idoyek commented Jun 7, 2023

Copy link
Copy Markdown
ContributorAuthor

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

@guybeckensteinguybeckenstein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@TalReinfeldTalReinfeld left a comment

Copy link
Copy Markdown
Contributor

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 <idoyekutiel123@gmail.com>
@idoyekidoyek added the CoreReview-Ready Ready for mentor review label Jun 8, 2023
Comment threadSearchHistory/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])

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

Comment threadSearchHistory/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

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

@YarboaYarboa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CoreReview-ReadyReady for mentor review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating search page

5 participants

@idoyek@guybeckenstein@Yarboa@TalReinfeld@OfirBachar