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

Add Submissions #718

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

Add Submissions #718

wants to merge 26 commits into from

Conversation

owlester12
Copy link
Contributor

No description provided.

owlester12 and others added 17 commits March 17, 2024 20:13
* Update main.ts

* Update frontend dependencies (#616)

Upgrade from Node 14 to Node 20 and bump frontend dependency versions to current.

---------

Co-authored-by: Julian Weng <[email protected]>

* Update README.md

* Update README backend instructions and intro blurb

* Fix admin page access on frontend. (#626)

Add frontend check for existing pre-loaded permissions on /admin.

* Removed deprecated QuestionResponse model and duplicate line (#625)

* Remove deprecated QuestionResponse model

* remove duplicate line: 'rank field in Club'

* made migrations after deleting QuestionResponse

* Streamline django storages config (#618)

* Add staticfiles

* Fix AWS bucket routing for boto

* Try setting credentials through env vars

* Try renaming env vars?

* Set AWS region

* add back staticfiles

* Remove region and signature version

* Move credentials to new API

* Use env variables and remove staticfiles

* Add back staticfiles

* Make code look pretty

---------

Co-authored-by: Rohan Moniz <[email protected]>

* Add hour to displayed application deadline (#628)

* Add hour for application due dates

* Make linter happy

* Specify Eastern time zone

* Display username if name is empty (#637)

* finished changes

* Remove Wharton applications from user profile

* Fix weird artifacts from merge

---------

Co-authored-by: Joy Liu <[email protected]>
Co-authored-by: Julian Weng <[email protected]>
Co-authored-by: Rohan Moniz <[email protected]>
Co-authored-by: Thomas Ngulube <[email protected]>
Co-authored-by: Owen Lester <[email protected]>
* Bump debounce timeout to 400ms

* Make linter happy
Copy link

gitguardian bot commented Sep 5, 2024

⚠️ GitGuardian has uncovered 2 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 GitGuardian status Secret Commit Filename
10282361 Triggered Generic High Entropy Secret 54e1543 backend/pennclubs/settings/ci.py View secret
10282361 Triggered Generic High Entropy Secret 54e1543 backend/pennclubs/settings/development.py 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.

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.40%. Comparing base (fbedec8) to head (4daa2d4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #718   +/-   ##
=======================================
  Coverage   71.40%   71.40%           
=======================================
  Files          31       31           
  Lines        6850     6850           
=======================================
  Hits         4891     4891           
  Misses       1959     1959           
Flag Coverage Δ
71.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@julianweng julianweng left a comment

Choose a reason for hiding this comment

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

Looks good generally, had a couple of nits and things that could be changed from the existing ported implementation. Thanks for taking the time to revisit this!

}
Copy link
Member

Choose a reason for hiding this comment

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

Is this necessary to pass lint?

authenticated: boolean | null
submissions: ApplicationSubmission[]
whartonapplications: any
Copy link
Member

Choose a reason for hiding this comment

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

Nit: camel case variable name and adding types would be nice (I know the reference code didn't have either but it would be good practice)

{
name: 'applications',
label: 'Applications',
content: <ApplicationsPage whartonapplications={whartonapplications} />,
Copy link
Member

Choose a reason for hiding this comment

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

Now that the page is more visible in the profile, would be nice to clarify that it's for Wharton Cycle applications specifically (maybe change it to all eventually but not needed now).

Copy link
Member

@julianweng julianweng left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to fix the nits, just left two more and it should be ready!

</CardWrapper>
))
<div>
<Text>Only Wharton applications displayed here!</Text>
Copy link
Member

Choose a reason for hiding this comment

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

Maybe rephrase as "Note: only current Wharton applications are displayed on this page"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made changes

@@ -87,7 +87,7 @@ const Settings = ({
{
name: 'applications',
label: 'Applications',
content: <ApplicationsPage whartonapplications={whartonapplications} />,
content: <ApplicationsPage whartonapplications={whartonApplications} />,
Copy link
Member

Choose a reason for hiding this comment

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

Could be appropriate to also rename the prop in ApplicationsPage to be camelcase for simplicity

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made changes

Copy link
Member

@julianweng julianweng left a comment

Choose a reason for hiding this comment

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

Hi, thanks for making the changes, can you fix the type check errors (tsc) with your change? Also, there is probably a better way of handling the rename than declaring and immediately spreading a separate returner variable that would be clearer to read.

@owlester12
Copy link
Contributor Author

Both issues should fixed. Some of the checks are still failing– something about the Codecov report not uploading? I'm unsure what that means.

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

Successfully merging this pull request may close these issues.

3 participants