Skip to content
Snippets Groups Projects
  1. Jan 11, 2022
    • Andreas Ellewsen's avatar
      Convert orgreg import to task · 2e26e4e4
      Andreas Ellewsen authored
      To reduce the amount of code and complexity of the service we move away
      from a management command triggered by a cronjob, to a task handled by
      django-q. Everything works the same way as before, but the management
      command now schedules the task instead of doing it. Introduces the
      ORGREG_SCHEDULE_TYPE settings variable controlling the scheduled when
      scheduling the import using the management command.
      Verified
      2e26e4e4
  2. Jan 06, 2022
    • Andreas Ellewsen's avatar
      Notify sponsors about ending roles · 17cbacd5
      Andreas Ellewsen authored
      The setup has five parts:
      - a new email template type
      - a new django-q task for notifying
      - a management command for scheduling the task periodically
      - a new settings variable NOTIFIER_LIMIT for controlling the number of
        days into the future the notifier script should use for end date of
        roles.
      - a new settings variable NOTIFIER_SCHEDULE_TYPE for controlling how
        often the notifier task should be scheduled when using the management
        command.
      
      Resolves: GREG-162
      Verified
      17cbacd5
  3. Jan 04, 2022
    • Andreas Ellewsen's avatar
      Move djangoq settings to base settings · 883fdbee
      Andreas Ellewsen authored
      Done to make djangoq settings accessible in production.
      The sync setting is changed to the default False value since the run
      order of the tasks is not relevant for our use case.
      Mail sending functions have gotten a sync argument to force the tasks to
      complete before checking their consequences in tests.
      Verified
      883fdbee
  4. Dec 21, 2021
  5. Dec 17, 2021
  6. Dec 15, 2021
  7. Dec 06, 2021
  8. Nov 19, 2021
  9. Nov 17, 2021
  10. Nov 15, 2021
  11. Nov 11, 2021
  12. Nov 10, 2021
  13. Nov 09, 2021
  14. Nov 08, 2021
  15. Nov 05, 2021
  16. Nov 03, 2021
    • Andreas Ellewsen's avatar
      Introduce OuIdentifiers · 460f2133
      Andreas Ellewsen authored
      To facilitate multiple identifiers of OUs we introduce the OuIdentifier
      model and removed the orgreg_id field from OrganizationalUnit.
      
      All current orgreg_ids are recreated as OuIdentifiers with name
      'orgreg_id' and source 'orgreg'. Both values are configurable in the
      base settings file in the gregsite app. Note that changing this value
      after migration will require manual work changing all OuIdentifiers
      already created before the next run of the orgreg_import management
      command since that assumes all current orgreg identifiers uses these
      values.
      
      All endpoints that previously exposed the orgreg_id field now exposes an
      identifiers field with a list of OuIdentifiers connected to that model
      with fields id, name, source, and value.
      
      Resolves: GREG-88
      Verified
      460f2133
  17. Oct 20, 2021
  18. Oct 19, 2021
  19. Oct 15, 2021
    • Andreas Ellewsen's avatar
      Add guest info page · 2abcd299
      Andreas Ellewsen authored
      - Expanded output from guest info api endpoint
      - Share guest info between both routes under /sponsor of the frontend.
      - More localised text options added for use on the sponsor pages
      - Details button on the sponsor overview page now points to the guest
        info page for each person.
      
      Resolves: GREG-74
      Verified
      2abcd299
  20. Oct 13, 2021
  21. Oct 08, 2021
  22. Oct 06, 2021
  23. Oct 05, 2021
  24. Oct 01, 2021
  25. Sep 30, 2021
Loading