-
Notifications
You must be signed in to change notification settings - Fork 3
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/company profile #207
Conversation
Is this ready for review? |
I think so, I'm not sure why the audit is failing, but the goals of the issue are all met! |
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.
This is already looking good, nice job!
Something related to this but for another issue:
@imnotteixeira @DoStini Will the company profile also have infinite scrolling or will the offers just be limited? We already have an endpoint to return all the company offer, we could adapt that to return with a offset/limit (or using the same strategy as in the future new search). What do you think?
Let's not insist on the offset/limit strategy, especially since we are implementing #129 with cursors. I'd say we should not have infinite scrolling, but rather an explicit "load more" button which the user would click, but for the backend it would work the same way so it doesn't matter. |
I believe the changes that were discussed previously have all been implemented, taking into account the restrictions and difficulties imposed by how the mongoose queries are currently working. Please alert me to any changes that should be made! |
Also, be aware of the file conflicts due to this branch not being "up-to-date" |
The assignee will change |
The tests should now align with the implementation goals, right now the following restrictions are in place:
If any of these don't make sense please let me know. |
I think that not having finnished its registratio should not be a restriction on company fetching. What do you think @BrunoRosendo @DoStini ? |
What information would we have in that case? Not sure if it's useful for a company profile but, either way, we should have the same restriction as in the "get all companies" endpoint |
Im my opinion, if a company didnt finish their registration, is like of they do not exist in the platform at all. So I think we should 404 Not Found for hidden companies and not finished |
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.
Besides the comments I made, this looks good to me. Just be careful to rebase this branch with develop.
3fa347c
to
469b04d
Compare
I decided to leave the implementation as is and created a new issue to deal with the inconsistent http statuses (#282). |
469b04d
to
ce2a571
Compare
Codecov ReportPatch coverage:
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more Additional details and impacted files@@ Coverage Diff @@
## develop #207 +/- ##
===========================================
+ Coverage 90.33% 90.51% +0.18%
===========================================
Files 54 54
Lines 1417 1444 +27
Branches 232 242 +10
===========================================
+ Hits 1280 1307 +27
Misses 132 132
Partials 5 5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Other than the pointed out code, this looks good to me.
Your Render PR Server URL is https://nijobs-backend-pr-207.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cg3lisu4dad6b95gv0k0. |
c674109
to
1b4ac39
Compare
Added the validator for the route
Moved hardcoded value to constant
Renamed tests to better fitting names and improved them
7a6183c
1b4ac39
to
7a6183c
Compare
Closes #9