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

SAML to prod #530

Merged
merged 22 commits into from
Sep 4, 2023
Merged

SAML to prod #530

merged 22 commits into from
Sep 4, 2023

Commits on Jun 13, 2023

  1. Configuration menu
    Copy the full SHA
    00266b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb1ade1 View commit details
    Browse the repository at this point in the history
  3. refactor: removed unneeded JS

    tymees committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    ae17bd4 View commit details
    Browse the repository at this point in the history
  4. chore: po file cleanup

    Oh come on Ty, you're normally the one constantly bugging everyone else about this and now you're guilty of doing it!
    tymees committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    dc18eff View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Configuration menu
    Copy the full SHA
    99013f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80fd956 View commit details
    Browse the repository at this point in the history
  3. fix: use DSC's LogoutInitView instead

    It can handle non-SAML sessions as well
    tymees committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    9f2246e View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2023

  1. Configuration menu
    Copy the full SHA
    a19a5b1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    64fdb96 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Merge develop into acceptation (#496)

    * fix: prevent discontinueing of accepted proposals
    
    * update successurls except supervisor revision
    
    * remove redundant lines
    
    * update secretary email hyperlink for METC doubts
    
    * update mechanical turk recruitment
    
    * TODO finish help texts for registration
    
    * make student_program conditional
    
    * add student_program to forms and models
    
    * add migrations
    
    * add student_program to proposal pdfs
    
    * add translations for new fields and help texts
    
    * tidy up migrations
    
    * remove temporary help text
    
    * add student_context field and migrate
    
    * add documentation check_field_required
    
    * add student_context_details field
    
    * cleanup translation
    
    * add helptext for registrations
    
    * migration for helptext registration
    
    * cleanup migrations
    
    * update helptext registrations
    
    * add translations helptext registrations
    
    * update project funding detail question
    
    * update fixture description
    
    * add gettext to student_context_details
    
    * update help text registrations
    
    * migration and translation
    
    * update translations
    
    * make student_context and _program required
    
    * Create issues.yml
    
    * Fixed incorrect version
    
    * fix inaccuracy w requirement of student questions
    
    * add has_traits help text
    
    * update help text translation
    
    * compile messages
    
    * add student_justification field
    
    * add translations student_justification field
    
    * add helptext for date_start
    
    * add translations helptext date_start
    
    * add fields for hierarchy and hierarchy_details
    
    * add translations for hierarchy and details
    
    * add fields for special details
    
    * fix inaccuracy with dependency check has_traits
    
    * change traits dependency to medical_traits
    
    * remove has_traits variable from dependency logic
    
    * deindent helptext
    
    * de-indent helptext
    
    * de-indent helptext and fix grammar
    
    * Feature/hierarchy fields (#421)
    
    * add fields for hierarchy and hierarchy_details
    
    * add translations for hierarchy and details
    
    * Use msgcat to merge pofile with develop
    
    * Remove duplicated 'student_context' check
    
    And minor whitespace changes
    
    * Add extra text migrations for whitespace changes
    
    So they don't keep nagging us in the future. No actual changes to see here.
    
    * Merge rest of branch
    
    Co-authored-by: Michael Villeneuve <[email protected]>
    
    * fix fuzzy translation
    
    * add student_justification, student_context, and hierarchy to pdf
    
    * add translations
    
    * add filtertag
    
    * add fields to pdf
    
    * add newline
    
    * Fix/date start required (#426)
    
    * Add contingency for empty date_start in check_start_date()
    
    * Mark date_start as a soft required field in ProposalForm
    
    * merge migrations
    
    * add student detail fields to proposal diff
    
    * add hierarchy fields to study diff
    
    * EMA no longer is auto-long-route
    
    * update regulation url
    
    * update comment
    
    * remove n of sessions as reason
    
    * settings are no longer auto-long-route
    
    * setting auto-long-route logic removed
    
    * remove registrationkinds logic for auto-longroute
    
    * change name UiL OTS to ILS
    
    * create migration for namechange
    
    * add translations namechange
    
    * add yesno filter to hierarchy field in pdf
    
    * added missing td for diff proposal
    
    * add defaults for student_context
    
    * add filter to pdf for special traits
    
    * make helptext special_details translatable
    
    * add SpecialTrait model to admin
    
    * Revert "add filter to pdf for special traits"
    
    This reverts commit a10f7bf.
    
    * update traits description to mention medical details
    
    * include filter for special details in pdf
    
    * add special details to diff study
    
    * update docstring to reflect changes
    
    * update depends_on_value logic to work with secondary dependencies
    
    * update translations
    
    * migration medical details description
    
    * update logic for check_field_required
    
    * feature: speedy dependency checks
    
    * feature: intelligent unchecking of boxes
    
    * feature: intelligent unchecking of boxes
    
    * fix code formatting in template
    
    * refactor filter code
    
    same cleaning on another filter
    
    * fix: abort post request when a new request is started
    
    * formatting: fancy string to appease linter
    
    * specify the field for the postrequest
    
    * Fix some fuzzy or missing translations
    
    * fix: use map to track multiple requests
    Otherwise we might lose info
    
    * remove comment
    
    * add hierarchy and special details to auto_review
    
    * update auto_review tests
    
    * update longroute email
    
    * update shortroute email
    
    * fix: superfluous signoffs
    
    * update plaintext mails long and shortroute
    
    * add revision body for txt emails
    
    * additional update longroute txt
    
    * update html with revision versions
    
    * update translations
    
    * update menu header
    
    * remove menu item LK
    
    * update template to reflect unified regulations
    
    * Add translations for links in help menu
    
    * Removed more references to different chambers and added translations
    
    * use unique process identifier to fix bug
    
    * add edit dmp link for secretary
    
    * add translation for edit dmp view
    
    * add supervisor and creator to sidebar
    
    * Move html element up
    
    * Feature/remove passive consent (#439)
    
    Please note that because this branch was rebased, many commits have been duplicated below. Apologies for the dense log.
    
    * add fields for hierarchy and hierarchy_details
    
    * add translations for hierarchy and details
    
    * add fields for special details
    
    * fix inaccuracy with dependency check has_traits
    
    * change traits dependency to medical_traits
    
    * remove has_traits variable from dependency logic
    
    * add translations
    
    * add filtertag
    
    * add fields to pdf
    
    * add newline
    
    * update dependencies for urgent security fix
    
    * update dependencies for urgent security fix
    
    * fix: hide older versions of proposal in semi-public archive
    
    * feature: public archive
    
    * fix: added missing translations
    
    * fix: spelling
    
    * fix: spelling (again)
    
    * Fix/secure user uploads (#435)
    
    * UserMediaView new handles requests to /media/ for user uploads
    
    * Remove the now-unused static() user-uploads URL include
    
    * Serve user uploads with UserMediaView, securing them behind auth
    
    * REVERT previous raw push to master. Apologies
    
    * Fix/secure user uploads (#437)
    
    * UserMediaView new handles requests to /media/ for user uploads
    
    * Remove the now-unused static() user-uploads URL include
    
    * Check that requested user media paths are within MEDIA_ROOT
    
    * Remove extra media URL
    
    * Serve user uploads with new UserMediaView (#436)
    
    * Serve user uploads with new UserMediaView
    
    This prohibits non-logged-in users from accessing them
    
    * Prevent upwards directory traversal in UserMediaView
    
    * Remove extra user media url
    
    * Two content issues (#434)
    
    * Update homepage regulation links in Dutch and English
    
    * Missed some links
    
    * Removed old "updates" section that was very dated
    
    * Fixed links to the regulations in the pre-approval start page
    
    * Some missing spaces caused by PO trimming / html interactions
    
    * Proposal to application change
    
    * Remove unused translations
    
    * Hard-indent django templates at 4 spaces
    
    * Remove unused translations
    
    * Update master from acceptation (#432)
    
    * update dependencies for urgent security fix
    
    * fix: hide older versions of proposal in semi-public archive
    
    * feature: public archive
    
    * fix: added missing translations
    
    * fix: spelling
    
    * fix: spelling (again)
    
    * Fix/secure user uploads (#435)
    
    * UserMediaView new handles requests to /media/ for user uploads
    
    * Remove the now-unused static() user-uploads URL include
    
    * Fix/secure user uploads (#437)
    
    * UserMediaView new handles requests to /media/ for user uploads
    
    * Remove the now-unused static() user-uploads URL include
    
    * Check that requested user media paths are within MEDIA_ROOT
    
    * Remove extra media URL
    
    * Two content issues (#434)
    
    * Update homepage regulation links in Dutch and English
    
    * Missed some links
    
    * Removed old "updates" section that was very dated
    
    * Fixed links to the regulations in the pre-approval start page
    
    * Some missing spaces caused by PO trimming / html interactions
    
    * Proposal to application change
    
    * Remove unused translations
    
    * Hard-indent django templates at 4 spaces
    
    * Remove unused translations
    
    Co-authored-by: Michael Villeneuve <[email protected]>
    
    * Remove passive IC fields from form
    
    * Remove passive consent references from template and JS
    
    * Remove passive IC docs from ProposalSubmit validation
    
    * Remove passive IC from StudyForm
    
    * feat: new support email
    
    * Rewrite school consent form logic
    
    * Reduce template whitespace down to 2 spaces
    
    Apologies in advance to Ty
    
    *This commit changes no code and can be ignored*
    
    * Add indentation to hide_school_forms()
    
    * School forms are now wholly optional
    
    * Remove passive IC from pdf templates
    
    * Remove passive consent fields from model, add migration
    
    * Removed auto_review test for passive consent
    
    * Simplify Study.has_missing_forms()
    
    * merge migrations
    
    * EMA no longer is auto-long-route
    
    * update regulation url
    
    * update comment
    
    * remove n of sessions as reason
    
    * settings are no longer auto-long-route
    
    * setting auto-long-route logic removed
    
    * remove registrationkinds logic for auto-longroute
    
    * chore: fuzzy be gone!
    
    * add filter to pdf for special traits
    
    * make helptext special_details translatable
    
    * add SpecialTrait model to admin
    
    * Revert "add filter to pdf for special traits"
    
    This reverts commit a10f7bf.
    
    * update traits description to mention medical details
    
    * include filter for special details in pdf
    
    * add special details to diff study
    
    * update docstring to reflect changes
    
    * update depends_on_value logic to work with secondary dependencies
    
    * update translations
    
    * Fix/djang admin reviews list (#444)
    
    Fix bug in django-admin review editing
    
    * migration medical details description
    
    * pip-compile -U --resolver=backtracking
    
    * update logic for check_field_required
    
    * Merge some fuzzy translations
    
    * Fix broken link that regressed during merge
    
    * Update master from acceptation (#445)
    
    * Updated dependencies
    
    * New public archive
    
    * New user upload access view
    (This had already been pushed to master separately)
    
    * Two content issues (#434)
    
    * Update homepage regulation links in Dutch and English
    
    * Removed old "updates" section that was very dated
    
    * Fixed links to the regulations in the pre-approval start page
    
    * Some missing spaces caused by PO trimming / html interactions
    
    * Proposal to application change
    
    * Remove unused translations
    
    * Feature: new support email
    
    * Fix/django admin reviews list (#444)
    
    Co-authored-by: Ty Mees <[email protected]>
    
    * Fixed template referencing Documents object instead of Study object
    
    * Small dependency bump for security (#448)
    
    * feature: speedy dependency checks
    
    * feature: intelligent unchecking of boxes
    
    * feature: intelligent unchecking of boxes
    
    * refactor filter code
    
    same cleaning on another filter
    
    * Revert "Remove passive IC from pdf templates"
    
    This reverts commit 0bf437d.
    
    * Revert "Remove passive consent fields from model, add migration"
    
    This reverts commit d92c226.
    
    * fix: abort post request when a new request is started
    
    * formatting: fancy string to appease linter
    
    * specify the field for the postrequest
    
    * Fix template visibility of Passive IC fields and school forms
    
    * Visibility logic for additional forms to provide all 5 document fields.
    
    * Trim the block translations in proposal_pdf.html
    
    * Move Passive IC down to the bottom of the Study model with comment
    
    * Update verbose name of the external consent file fields
    
    * Add inconsequential migration for string changes
    
    * Add an infobox when any study requires the external forms
    
    * Add translations
    
    * Overlooked translation and word
    
    * Remove old translations
    
    * Fix some fuzzy or missing translations
    
    * fix: use map to track multiple requests
    Otherwise we might lose info
    
    * remove comment
    
    * add hierarchy and special details to auto_review
    
    * update auto_review tests
    
    * update longroute email
    
    * update shortroute email
    
    * fix: superfluous signoffs
    
    * update plaintext mails long and shortroute
    
    * add revision body for txt emails
    
    * additional update longroute txt
    
    * update html with revision versions
    
    * update translations
    
    * update menu header
    
    * remove menu item LK
    
    * update template to reflect unified regulations
    
    * Add translations for links in help menu
    
    * Removed more references to different chambers and added translations
    
    * use unique process identifier to fix bug
    
    * Added back is_school to some setting fixtures
    
    * Remove passive IC fields from form
    
    * Remove passive consent references from template and JS
    
    * Remove passive IC docs from ProposalSubmit validation
    
    * Remove passive IC from StudyForm
    
    * Rewrite school consent form logic
    
    * Reduce template whitespace down to 2 spaces
    
    Apologies in advance to Ty
    
    *This commit changes no code and can be ignored*
    
    * Add indentation to hide_school_forms()
    
    * School forms are now wholly optional
    
    * Remove passive IC from pdf templates
    
    * Remove passive consent fields from model, add migration
    
    * Removed auto_review test for passive consent
    
    * Simplify Study.has_missing_forms()
    
    * Fixed template referencing Documents object instead of Study object
    
    * Revert "Remove passive IC from pdf templates"
    
    This reverts commit 0bf437d.
    
    * Revert "Remove passive consent fields from model, add migration"
    
    This reverts commit d92c226.
    
    * Fix template visibility of Passive IC fields and school forms
    
    * Visibility logic for additional forms to provide all 5 document fields.
    
    * Trim the block translations in proposal_pdf.html
    
    * Move Passive IC down to the bottom of the Study model with comment
    
    * Update verbose name of the external consent file fields
    
    * Add inconsequential migration for string changes
    
    * Add an infobox when any study requires the external forms
    
    * Add translations
    
    * Added back is_school to some setting fixtures
    
    * Fix conflicting migrations
    
    * Fix study_form JS from rebase
    
    * Fix tests from rebasing onto new develop
    
    * Merge translations and fix empty POstring in proposal_diff.html
    
    ---------
    
    Co-authored-by: Meesch <[email protected]>
    Co-authored-by: Mees, T.D. (Ty) <[email protected]>
    Co-authored-by: Meesch <[email protected]>
    
    * update applicant name list in template
    
    * move dmp link to pdf container
    from document container
    
    * create update_attachment template for proposal
    
    * update translations
    
    * update translations (again)
    
    * update success url for update DM
    
    * update get_applicant_names_emails
    
    * hotfix: po translation duplicate line
    
    * chore: update locale file
    Needed because it was impossible to get a consistent merge
    
    * Nullify the minor revision attributes on copy (#482)
    
    * First commit to save changes
    
    * Fixed the translation for this feature
    
    * Edited the Poppler package to the correct one
    
    * Increase nr. of docs that can be added. Changed the value of 1 variable.
    
    * updated max num of words for ethical considerations field
    
    * created a validator for the comment fields and added COMMENTS_MAX_WORDS variable with value of 1000
    
    * updated the string per field to showcase the correct num of words & translations
    
    * added the running wordcounter for the comments field
    
    * first attempt to refactor the word counter in its own function, but have not succeeded in displaying the formatted string 'aantal woorden' correctly.
    
    * fixed the bug by declaring translateable string outside of function call
    
    * Attempted to use the word_counter.js file for the proposal_form template, but it causes a bug, where the word counter only appears once, underneath the first text field
    
    * Implemented a working version of the seperate word counter static .js file. Works as it should now!
    
    * removed the jQuery shorthand inside of the static .js file and instead placed it in the template.
    
    * changed the other applicants if statement in the pre-approved and pre-assesment pdf templates to the one in the normal pdf template
    
    * change the cover image from the winter one, to the normal one.
    
    * changed UIL OTS to ILS in fixture institutions.json, and ran loaddata
    
    * changed on occurence of UIL OTS in the django.po file
    
    * Took a new cover image from the beeldbank and updated the credt
    
    * I don't think I included the changes ... But I did now, woops ;p
    
    * Added docs on merging translations
    
    ---------
    
    Co-authored-by: Meesch <[email protected]>
    Co-authored-by: Meesch <[email protected]>
    Co-authored-by: Michael Villeneuve <[email protected]>
    Co-authored-by: Edo Storm <[email protected]>
    Co-authored-by: EdoStorm96 <[email protected]>
    6 people authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    898ff93 View commit details
    Browse the repository at this point in the history
  2. Hotfix and requirements bump for acceptation (#489)

    * Update deps again, because why not
    
    * Add more failsafes to get_study_documents (#460)
    
    * Update dependencies
    
    * Fix error when study is None
    
    * Another req bump
    
    ---------
    
    Co-authored-by: Meesch <[email protected]>
    Co-authored-by: Ty Mees <[email protected]>
    3 people authored Jul 11, 2023
    Configuration menu
    Copy the full SHA
    870e718 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2023

  1. Merge branch 'acceptation' into feature/saml

    # Conflicts:
    #	locale/en/LC_MESSAGES/django.mo
    #	locale/en/LC_MESSAGES/django.po
    #	main/templates/registration/login.html
    #	requirements.txt
    tymees committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    dc4aeab View commit details
    Browse the repository at this point in the history
  2. deps: update dependencies

    I think I merged the file properly, but just to be sure I'll update them again
    tymees committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    323fe93 View commit details
    Browse the repository at this point in the history
  3. fix: missing package namespace

    tymees committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    7ad6247 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e389bba View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0a8c375 View commit details
    Browse the repository at this point in the history
  6. fix: use the right cover

    tymees committed Jul 24, 2023
    Configuration menu
    Copy the full SHA
    7b94e90 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0ed8cfe View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Configuration menu
    Copy the full SHA
    5aa233f View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. fix: duplicated Model removed

    tymees committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    7eb5662 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2023

  1. Merge pull request #497 from DH-IT-Portal-Development/feature/saml

    Initial saml login support
    tymees authored Aug 24, 2023
    Configuration menu
    Copy the full SHA
    b481c8e View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    8e478db View commit details
    Browse the repository at this point in the history