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

Job Postings Expiration Date #615

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

helloanil
Copy link
Contributor

What should the reviewer know?

CleanShot 2022-11-10 at 10 40 47

CleanShot 2022-11-10 at 10 41 03

@helloanil helloanil marked this pull request as ready for review December 25, 2022 16:45
`${API_URL}/redUsers/${userId}/tpJobListings?filter=${JSON.stringify({
where: {
expiresAt: { lt: currentDate },
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I am testing this PR on my local and see neither active nor expired job postings. Not sure if the problem is here, but it seems that fetching job listings returns undefined.

apps/admin-panel/src/App.jsx Show resolved Hide resolved
Comment on lines +153 to +164
<div
style={{
backgroundImage: `url(${JobPlaceholderCardUrl})`,
backgroundRepeat: 'x-repeat',
backgroundSize: 'contain',
height: '13rem',
width: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
}}
></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Big copy n' paste. How about we create a nice n' named component? (just putting it below this one)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't really understand this comment. What do you mean by copy paste? Can you tell me where it's copy pasted from so I can make them both a nice component?

Copy link
Contributor

Choose a reason for hiding this comment

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

If you look at line 103 in the same file (and in the same function/component) you'll see some repetition. That, plus the fact that this component has grown quite large now, is for me reason for a quick refactor into a well-named component so we also clearly know what this div block is.

apps/api/common/models/tp-job-listing.js Show resolved Hide resolved
@gitguardian
Copy link

gitguardian bot commented Apr 27, 2023

⚠️ GitGuardian has uncovered 4 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id Secret Commit Filename
753993 Generic High Entropy Secret b3e7f20 nx.json View secret
753993 Generic High Entropy Secret ad5445b nx.json View secret
753993 Generic High Entropy Secret 863d333 nx.json View secret
753993 Generic High Entropy Secret e7ef109 nx.json View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants