Skip to content

Latest commit

 

History

History
1325 lines (875 loc) · 63.8 KB

CHANGELOG.md

File metadata and controls

1325 lines (875 loc) · 63.8 KB

v10.5.1 (16 October 2024)

Fix

  • visibilities: Don't crash in the suppressable visibility resolver (26fd823)

v10.5.0 (15 October 2024)

Feature

  • visibilities: Make visibilities suppressable on n:1 relationships (0899cc7)

Fix

  • perf: Add indexes for frequently filtered attributes on work item (b9a2032)

v10.4.0 (26 September 2024)

Feature

  • jexl: Add length transform (b4fbd99)

Fix

  • form: Speed up copying of documents (fac7a98)
  • Add missing "is_hidden" to SaveOptionSerializer (ab63598)

v10.3.1 (9 August 2024)

Fix

  • deps: Update dependencies (322dc23)
  • jexl: Always add root info (7b154f8)
  • code of conduct: Contact mail address (29aaf2e)

v10.3.0 (15 July 2024)

Feature

  • feat: allow calculated fields to depend on other calculated fields (92a8c1b)

  • feat(options): implement is_hidden jexl on options

    This commit adds an is_hidden jexl to Options. This will be evaluated and enforced on saving of answers. Addiotionally, the Options got a new filter visible_in_document. (38ca1c4)

Fix

  • fix(docker): install dependencies as caluma user (9623107)

v10.2.0 (21 May 2024)

Feature

  • feat(form): add more case info to jexl context (ab73edd)

  • feat(jexl): add main_case_form to info object

    This is convenient when you'd like to write a JEXL expression in a task form attached to some work item, that depends on the main case's form. (bcb9136)

Fix

  • fix(validation): do not block __typename when introspection is disabled

The DisableIntrospection validator rejects everything that could lead to insight into the schema. Sadly, our frontends rely on having __typename available, thus we need our own validator that allows this specific introspection key (but not anything else) (46f2184)

v10.1.1 (8 February 2024)

Fix

  • Do not query for non-existent buckets in healthz (7d5e8ab)

v10.1.0 (8 February 2024)

Feature

  • settings: Add setting to limit query depth (dde9c9a)

Fix

  • Defer calculation of calc answers until after creating a new doc (8111843)

v10.0.0 (31 Jan 2024)

Breaking

  • chore: drop deprecated id filter on cases filterset BREAKING CHANGE: you now must use the ids filter instead (e6356fa)

  • chore: update lots of dependencies Notable change: replacing psycopg2 with psycopg, version 3

    BREAKING CHANGE: This drops support for PostgreSQL versions 9, 10 and 11, as well as Python 3.8.

  • feat(healthz)!: overhaul health-checks for them to be less intrusive

    This commit contains no changes. Its only purpose is to mark the commit 54c545f3d484661f8c9b29b1ce20384b8df5bfc5 as breaking, because this was forgotten.

    BREAKING CHANGE: In the healthz response, the key database models has been dropped. (4a585da)

Feature

  • feat: disable introspection via validation rules property (21afd5d)
  • feat: implement flat_answer_map (analog to ember-caluma) (d96d33e)
  • feat(filters): add EXACT_WORD lookup type to SearchAnswer (23c0e55)
  • feat(healthz): overhaul health-checks for them to be less intrusive (54c545f)

Fix

  • fix(graphene): add a custom metaclass factory for interface types (d56f131)
  • fix(analytics/tests): do not assume sorted output (136f1ae)
  • fix: new keycloak versions omit groups in claims if no groups are set (d88affa)
  • fix: only save updated fields in post_complete case logic (8c9edae)
  • fix(healthz): do not warn about expected events (b747c1f)

v9.3.3 (5 January 2024)

Fix

  • Only save updated fields in post_complete case logic (eeabb02)

v9.3.2 (21 December 2023)

Fix

  • New keycloak versions omit groups in claims if no groups are set (d88affa)

v9.3.1 (1 September 2023)

Fix

  • migrations: Make app prefix migration language independent (2f3a5d3)

v9.3.0 (22 August 2023)

Feature

  • form: Add show_validation property for action buttons (6dea57e)

v9.2.0 (15 August 2023)

Feature

  • core: Add meta intersection filter (1a54a7f)

Fix

  • analytics: Fix meta field extraction (704ffb9)

v9.1.0 (17 July 2023)

Feature

  • jexl: Add flatten transform (42144cb)

Fix

  • Also catch ValueError and ZeroDivision errors on early jexl evaluation (0fe96ea)

Documentation

  • jexl: Update question jexl docstring (cdf1e73)

v9.0.0 (9 June 2023)

Feature

  • auth: Only use userinfo for auth (drop introspect) (d065ef8)
  • analytics: Support accessing sub-cases and their parent (6dfc4f9)

Breaking

  • setting the OIDC_INTROSPECT_* and OIDC_CLIENT_AS_USERNAME env vars is obsolete now. Auth now only calls the userinfo endpoint without any fallback to the introspect endpoint. This will possibly have an impact on the username property of the user object. If your extensions depend on that property, please update them if necessary. Additionally, all requests sent to Caluma must include the openid-scope. (d065ef8)

v8.0.0 (12 May 2023)

Fix

  • workflow: Provide context to WorkItemValidator (2fb5308)

This is the long overdue stable release of Caluma v8. For a detailed description of the changes to v7, please refer to the changelogs of the v8 beta versions.

v8.0.0-beta.30 (10 May 2023)

Fix

  • analytics: Fix aliases exceeding 63 bytes (cdca090)

v8.0.0-beta.29 (13 April 2023)

Feature

  • filters: Add filters for modified_at (16fdb73)

v8.0.0-beta.28 (21 March 2023)

Feature

  • filters: Add useful deadline filters to workitems (f74d641)

v8.0.0-beta.27 (10 March 2023)

Feature

  • filters: Support word combinations in SearchAnswersFilter (4c3e910)
  • workflow: Add case_document_forms filter to work item (e351de3)

v8.0.0-beta.26 (20 February 2023)

Fix

  • form: Fix validation in document validity graph (6b859fa)

v8.0.0-beta.25 (17 February 2023)

This release provides a management command for recalculating calculated Answers that contain values from TableQuestions. Due to a bug, answers to calculated questions were wrong under certain conditions, if they contained values from table rows. This command recalculates all of them.

If you use CalculatedFloatQuestions in your forms, it is advised to run this command:

python manage.py recalculate_calc_answers

Fix

  • Replace faulty migration for calc answers with a command (4a3e85c)

v8.0.0-beta.24 (17 February 2023)

Feature

  • analytics: Add support for calculated questions (196ab05)

Fix

  • Fix calc answer evaluation when adding new table rows (cb668ba)
  • workflow: Emit post_create_work_item when redo is set to ready (5e9744a)
  • analytics: Handle missing dates (a06181a)
  • analytics: Properly quote expressions (3ff7f36)

v8.0.0-beta.23 (26 January 2023)

Fix

  • analytics: Fix form identifier; disable subform form (94542ac)
  • Properly quote aliases - small additional fixes (535c703)

v8.0.0-beta.22 (12 December 2022)

Feature

  • analytics: Add support for form name extraction (1df3f53)
  • Allow using client id as user for client-secret auth (3e45c61)

Fix

  • Do not crash when django-extensions is missing (6028be3)
  • analytics: Fix commandline output crash with certain aliases (1839423)
  • analytics: Do not crash with more complex visibility layers (71be082)
  • analytics: Do not output summary for simple tables (34205cf)

v8.0.0-beta.21 (17 November 2022)

Feature

  • data_source: Add question and context arguments for data sources (cb2739e)

Breaking

  • The method get_data on data sources receives two new arguments question (caluma question model) and context (dict). The method validate_answer_value on data sources receives a new argument context (dict). (cb2739e)

v8.0.0-beta.20 (10 November 2022)

Feature

  • workflow: Include family field on case schema model (aea98f9)
  • filters: Add visibleInDocument-filter for questions (9f5caa2)
  • analytics: Enable reordering of analytics fields (59eadbc)

Fix

  • Fix breaking change introduced in 59eadbc (34be9bf)
  • Remove order_by in field_ordering, refactor test (121a433)

v8.0.0-beta.19 (27 September 2022)

Fix

  • deps: Pin graphene-django to v3.0.0b7 (3efc320)

v8.0.0-beta.18 (12 September 2022)

Feature

  • analytics: Provide option labels (d1f7a38)
  • cases: Add filter to exclude child cases (dd58f6c)

v8.0.0-beta.17 (9 September 2022)

Fix

  • events: Don't emit create work item events when updating (4f2f491)

Breaking

  • The saveWorkItem mutation doesn't emit pre_create_work_item post_create_work_item anymore since this is not the expected behaviour. (4f2f491)

v8.0.0-beta.16 (1 September 2022)

Fix

  • redo: Recalculate deadline after updating a redo work item to ready (f803fbe)
  • permissions: Make sure user permission classes call super (6e1945b)

v8.0.0-beta.15 (26 August 2022)

Feature

  • flow: Allow flows to not have tasks in next if redoable is given (867b796)
  • reopen case: Allow reopening child cases of ready work items (e073cad)
  • workflow: Add is_redoable property to work item schema (709965d)
  • workflow: Add search answer filter to work item filters (0ceb2c6)
  • caluma: Add new work item order key (a794211)

Fix

  • redo: Fix workflow of work items in status redo (abbdb92)
  • analytics: Handle None and ignore 0 in summary (d5c9669)

Breaking

  • This removes the deprecated properties userinfo and introspection on the base user class which have been deprecated for a long time. (b4fd9e2)
  • This drops the saveCase mutation which has been deprecated for a long time. (6cf701d)

v8.0.0-beta.14 (18 August 2022)

Fix

  • Exclude not supported questions from answer search (a27681c)
  • Fix multifile migration again (d812956)
  • Handle files from history that don't exist anymore in migration (21611c3)

v8.0.0-beta.13 (15 August 2022)

Fix

  • historical-schema: Fetch the correct historical files (2580e80)
  • form: Migration problem with historicalanswer (a8633b6)
  • Multiple fixes for analytics (e78b8d2)

v8.0.0-beta.12 (5 August 2022)

Feature

  • workflow: Add ids filter to case (89b70ec)
  • form: Multiple files in file questions (4600ed0)
  • core: Allow input type override (215cdb7)
  • Searchanswers in forms (6a75f17)

Fix

  • form: Fix and test search_answers (371a4f0)
  • analytics: Provide more correct supported functions in analytics (2130f34)
  • log: Minio stat errors shouldn't be errors (701bafc)
  • workflow: Remove and fix ordering keys (409e54f)
  • schema: Reopen case schema clarification (6153b45)

Breaking

  • This renames the question type constant for file questions, and changes the semantics of the answer value for file questions as well: It is now a list of dicts instead of a single string. The response type for querying file(s) answers now also is a list instead of a single dict. (4600ed0)

v8.0.0-beta.11 (6 July 2022)

Feature

  • core: Allow input type override (ec4c899)

Fix

  • form: Use potentially prefetched answer document set for table rows (58e0a7c)
  • schema: Reopen case schema clarification (a394273)

v8.0.0-beta.10 (24 June 2022)

Fix

  • document: Fix label of copied dynamic options (00383fc)

v8.0.0-beta.9 (24 June 2022)

Fix

  • document: Copy dynamic options when copying documents (67910d9)
  • ReopenCase should disregard WorkItems in status REDO (dded3a8)
  • deps: Update dependencies of dependencies (e3a5de3)
  • form: Set questions of searchAnswers as required (fb7ad5f)

Breaking

  • searchAnswers questions list is now required (fb7ad5f)

v8.0.0-beta.8 (20 June 2022)

Fix

  • default answer: Don't set document when copying default answers (7b5ce74)

v8.0.0-beta.7 (9 June 2022)

Fix

  • pivot_table: Pass context to child query (34f59a2)
  • build: Conftest should be in generated package (b82b6b3)

v8.0.0-beta.6 (28 April 2022)

Feature

  • ordering: Remove unused ordering attributes and add missing (9cbdd7d)
  • events: Cleanup deprecated events (1bf5792)
  • filters: Clean up all the old filter syntax (ad008cd)

Breaking

Remove unused ordering attributes and add missing (9cbdd7d)

This removes various orderings that do not make sense and were not used:

  • On all connections:
    • created_by_user
    • created_by_group
    • modified_by_user
    • modified_by_group
  • Answer
    • document
    • file
  • Document
    • source

The following ordering attributes were added because they make sense:

  • Case
    • created_at
    • modified_at
  • Flow
    • created_at
    • modified_at
  • Task
    • created_at
    • modified_at
  • Workflow
    • created_at
    • modified_at
  • AnalyticsField
    • created_at
    • modified_at
    • alias
  • DynamicOption
    • created_at
    • modified_at
    • slug
    • label
    • question
  • Flow
    • created_at
    • modified_at
    • task

Cleanup deprecated events (1bf5792)

The following deprecated events were removed:

  • created_work_item
  • completed_work_item
  • skipped_work_item
  • suspended_work_item
  • resumed_work_item
  • completed_case
  • created_case
  • suspended_case
  • resumed_case
  • canceled_work_item
  • cancelled_work_item
  • canceled_case
  • cancelled_case

Clean up all the old filter syntax (ad008cd)

We have for a long time had two syntaxes for filtering, one of which was deprecated for over a year now and only kept for backwards compatibility. Finally, the old form has to go.

Old:

query foo {
    allWorkItems(status: $status) {...}
}

New:

query foo {
    allWorkItems(filter: [{status: $status}]) {...}
}

The new syntax also allows reusing the same filter type twice to narrow down the result set even more. It also supports inverting the filters to implement explicit exclusion. It is now time to get rid of the old syntax.

The following changes are breaking:

  • Removed deprecated slug filters in favor or slugs filters
  • Removed top level filters
  • Removed orderByQuestionAnswerValue filter in favor of documentAnswer in the top level orderset
  • Removed orderBy in filtersets in favor of top level order orderset
  • Removed ordering by static meta attributes (configured with META_FIELDS in favor of meta in the top level orderset

v8.0.0-beta.5 (19 April 2022)

Fix

  • deps: Lock graphql-core to 3.1.x to avoid import error (04f35c8)

v8.0.0-beta.4 (13 April 2022)

Fix

  • deps: Bump django from 3.2.12 to 3.2.13 (76b9e0a)
  • docs: Fix incorrect documentation of createdAfter and createdBefore filters (a8ba2bb)

v8.0.0-beta.3 (6 April 2022)

Feature

  • analytics: Support for additional starting objects (4f24b5b)
  • test: Fixture for running a block of code at a given faked time (8e3ab7a)
  • Reopen case and ready work items (ed7ff26)
  • analytics: Summary row (4e7bd5c)
  • analytics: Pivot table implementation (ccc6bab)
  • test: Add at_date fixture (649f657)

Fix

  • docker: Fix standalone docker image command (93f2158)
  • filter: Do not crash on empty query param in filter (c9bb93c)
  • graphene: Write a failing test for the getRootForms query (d2dd1af)

v8.0.0-beta.2 (24 March 2022)

Fix

  • relay: Make extraction of global ids more defensive (392b4f7)

v8.0.0-beta.1 (23 March 2022)

Fix

  • workflow: Fix creating work items when completed ones exist (b2cc0a8)
  • document: Remove duplicate filtering on answer (c92f3ed)

v8.0.0-beta.0 (17 March 2022)

Feature

  • workflow: Allow multiple instance work items to continue async (510ce48)
  • workflow: Only create work item if they don't exist yet (7e32891)
  • analytics: Introduce analytics table (#1572) (94db1d3)
  • workflow: Implement WorkItem redo pattern (#1656) (d01e284)

Fix

  • graphene: Avoid default connection limit (edaf287)
  • validation: Only skip validation for none or empty strings (9603db4)
  • format-validators: Don't run format validation on empty values (ce2f5ca)
  • analytic: Add default ordering for fields and available fields (513de29)
  • analytics: Parse date parts to integer for consistency (28c3387)
  • options: Keep order of selected options the same as the value (d57cd12)
  • deps: Fix deprecation warning for collections module (4476805)
  • Restrict valid filters for choice questions (#1680) (549d24d)
  • form: Update or create answers when copying to a new document (ca0d17e)

Breaking

  • If you run Caluma as a Python module and still run 3.7, this will break (94db1d3)

Documentation

v7.15.2 (20 March 2022)

Fix

  • document: Remove duplicate filtering on answer (c92f3ed)

v7.15.1 (15 March 2022)

Fix

  • graphene: Avoid default connection limit (23969ee)

v7.15.0 (25 January 2022)

Feature

Fix

  • settings: Use int for MINIO_PRESIGNED_TTL_MINUTES (#1632) (cc9f89f)

v7.14.3 (20 March 2022)

Fix

  • document: Remove duplicate filtering on answer (c92f3ed)

v7.14.2 (10. March 2022)

Fix

  • validation: Only skip validation for none or empty strings (b030904)
  • format-validators: Don't run format validation on empty values (dcea2b5)

v7.14.1 (16. February 2022)

Fix

  • form: Update or create answers when copying to a new document (9f436af)

v7.14.0 (1 December 2021)

Feature

  • config: Validate permission decorators (#1615) (a63a6d3)
  • Expose more CORS related configurations via environment variables (d88165c)
  • form: Add new action button question type (2b3086f)
  • workflow: Extend group jexl context object (ce3f4fe)
  • events: Allow the sender to be used in filter_events (6104cbd)
  • signals: Introduce event filter (e597a99)

Fix

  • selected_options: Handle selected options if value is empty array (#1621) (f097912)
  • schema: Define interface for dynamic questions (d607544)
  • Set created_by fields on FormQuestions (89ba971)

Documentation

  • Fix custom visibility code snippet (d4abb69)
  • guide: Update guide to use ember-caluma v9 addons (4d3c9fc)

v7.13.0 (27 August 2021)

Feature

  • config: Introduce configurable user factory (8a49aaf)

Fix

  • documentation: Updated readme to reflect that GraphiQL is not available anymore (b6204e8)
  • serializers: Do not implicitly monkeypatch rest framework (86b8a05)
  • Prettier choice question error message (acbc25c)

v7.12.0 (23 June 2021)

Feature

  • jexl: Allow optional answer transforms with default value (72dfa5b)

v7.11.3 (10 June 2021)

Minor release only containing dependency updates. The release is done mainly because if this commit:

  • chore: update pyjexl [03546ce]
    The bugfix mozilla/pyjexl#23 (short-circuit evaluation) is critical for us, so we're pulling it in explicitly until there is a new pyjexl release.

v7.11.2 (8 June 2021)

Fix

  • Extend uwsgi buffer (324d9d3)
  • form: Fetch selected_options of corresp. question and document (df97a5d)

v7.11.1 (7 June 2021)

Fix

  • validation: Exclude hidden cells in answer transforms for tables (36b0972)

v7.11.0 (28 May 2021)

Feature

  • Make selected option(s) accessible from answers (824d9a8)
  • forms: Add question filter for forms (142e18b)
  • question: Add filters for sub and row form on questions (3b14abf)

v7.10.0 (23 April 2021)

Feature

  • Add IN lookup for json fields (#1472) (95bc2c3c88cab3d68137996a3daafdf3a1dd6c42)

Fix

  • Fix regression for union visibilities (e9a948c851e1bb9266e3e64205c9f21d0b3dca72)

v7.9.1 (20 April 2021)

Fix

  • document: Pass current user to copy document function (178602f)

v7.9.0 (31 March 2021)

Feature

Fix

  • workflow: Correctly set workitem name from task (#1448) (1095de4)

v7.8.1 (30. March 2021)

Fix

  • form: Modified_content on row documents (75822ef)
  • file: Ignore errors due to missing file (#1440) (63d9f94)

v7.8.0 (16. March 2021)

Feature

  • Improve mapby and add stringify transform (5fc1c73)
  • Modified_content properties on document (e333af0)
  • Add modified_by_user and modified_by_group fields (2868866)
  • Allow disabling ssl verification (#1408) (e0d6652)

Fix

  • Minio client requires different call signature for copy (f878bf1)
  • Remove unneeded default_answer field on serializer (3104840)
  • New minio has different metadata structure (#1412) (4f021af)
  • Update minio client to adjust for changed exceptions (0783629)
  • Use fixed maxsize from newest version (a0ac175)
  • Fix search filter when used in collection (#1392) (d99db68)

v7.7.1 (24. February 2021)

Fix

  • Extract_global_id should not be too eager in decoding (#1389) (8f97dc6)

v7.7.0 (12. February 2021)

Feature

  • form: Add python API and command for copying forms (7620eec)
  • jexl: Add min, max, sum, round transforms (beb714a)
  • Dump_caluma command for entire forms (#1367) (20b2a79)

Fix

  • Use homebrew jexl analyzer for question extraction (a81c089)
  • form: Don't validate calculated answer (014a804)

v7.6.0 (4. February 2021)

Feature

  • Add argument to on decorator to raise exceptions in the receiver (c3a3a90)

Fix

  • Calc questions not present in document (e111741)

v7.5.1 (2. February 2021)

Fix

  • Prevent recalculation of calculated answers for default answer changes (62f507c)

v7.5.0 (22 January 2021)

Feature

  • Allow usage of form meta in question jexl (f3f1223)

v7.4.0 (19 January 2021)

Fix

  • Validate inexisting references in calc questions (f4de05a)
  • Separate extractor for mapby arguments (34c6d2b)

v7.3.0 (14 January 2021)

Feature

  • Calculated float question (6a7c7ca)

Fix

  • str() should return string (df5ba3b)
  • Use mapby args if literal, fix calculated test (cb49617)
  • Support validation of nested table answers (7937220)
  • Use "mapby" arg if subject is answer transform (3a595a8)

v7.2.1 (14 January 2021)

Fix

  • Fix validation of table questions (6e1cf82)

v7.2.0 (23 December 2020)

Feature

  • Support multiple choice and improve choice search (456bf08)

Fix

  • Validate empty table answers correctly (8b00505)

v7.1.1 (10 December 2020)

Fix

  • Fix custom validation for save answer mutations (5e91341)

v7.1.0 (30 November 2020)

Feature

  • Introduce API for managing default_answers (995138a)
  • Pass user to copy method on answer and doc (38941b0)

Fix

v7.0.3 (25 November 2020)

Fix

  • Don't use default on row_question if default table_answer exists (30ce974)
  • Fix setting default answers for sub forms (24d2899)
  • Use domain_logic for saving answers in form app (6b71559)

v7.0.2 (23 November 2020)

Fix

  • Consequently use domain_logic for saveDocument (fe30966)

v7.0.1 (19 November 2020)

Fix

v7.0.0 (19 November 2020)

Fix

  • Pass user instead of info object to data source (213d84a)

Breaking

  • Pass the user to the get_data method of a data source instead of the whole info object since we don't have an info object when calling the python API. (213d84a)

v6.7.0 (17 November 2020)

Feature

  • Handle table_questions (33d303c)
  • Set default answers when creating new documents (d9c2b2e)
  • Implement default_answers (e3dae80)
  • Implement save_document form api (ffb422d)
  • Debug transforms (fbc5cd6)
  • Useful repr for most models (e6186cc)
  • Add api for save_answer (4457413)
  • Create caluma_logging app for access logging (2602aa2)

Fix

  • Do not use actual model in migration (073f01c)
  • Fix flaky ordering (1170242)
  • Flaky snapshort ordering (73e57ea)
  • Sort addressed_ and controlling_groups (e8eaae9)
  • Do not crash during migrations (d6887d0)
  • Call cursor.execute with params=None (151394a)
  • Migrate db sequences with prefix "caluma_" (baf303c)
  • Do not hang in migrations on broken data (bfc4304)

v6.6.0 (12 September 2020)

Feature

  • add ID filter for case and work item (b6d89f315c1d79e914de575edf10945cf08d0ef2)

v6.5.0 (11 September 2020)

Feature

  • Emit "pre_" events (dbda0a3e97e0a0ef977259d8a4e41b2912619225)

Fix

  • Don't send complete_work_item event when skip (8236481d7da4a91b66f6102592d4b9de38bf5324)
  • Always send post_complete_work_item event (6b2361593bd1a1df50c49c8f7b00779a1c75cc07)

v6.4.0 (2 September 2020)

Feature

  • suspend and resume cases and work items (5d00a44d150bee2fc58890751c2cb2bbf72ae64d)
  • rootCaseMetaValue filter on allWorkItems (5aed4208fbe590ec6528ed730c35a57ecedd3379)

Fix

  • add missing transactions on serializers (9a129d1185e46329361dd4914b5c67e07f92712a)
  • fix cancelling and skipping of work items with child case (07602dbf8cc9e44a50eda0b05dff1f9b8b9d63d5)

v6.3.3 (25 August 2020)

Fix

  • Add test (31f45985d320966d266d628eaaaf848fa5bead9b)
  • Make sure that one work item is always created (defc79770b7e76840e29d543bb98e5ef65fb3f89)

v6.3.2 (17 August 2020)

Fix

  • Import djangomodelfactory from actual module path (341148f74429a4f2d032731778edce819598dce3)

v6.3.1 (14 August 2020)

Fix

  • fix the return object of api methods (90a9102e3a9e4d9c59b49d11e5e0ec755a84c32d)

v6.3.0 (13 August 2020)

Feature

  • add context for all case and workitem mutations (bb45477eecdc478521feac1cd746d32a79bd7cdd)
  • add filter for case family (2b7271ff7ad4d3ee7f657caf20ef8d8c7a67593d)
  • add filters for work item deadlines (e7eb1044c6a67e7a955229781d2ff8d98af80d48)

Fix

  • emit completed_work_item event before closing the case (2d9d236eaa0ce37f2bc8b366bbd11b447090bf42)
  • enable context for skipping work items (a4f3b535514ad519f74465e743f785e0aa05994c)

v6.2.0 (5 August 2020)

Feature

  • Add filter for filtering work items by multiple tasks (32508e587d2183e78265d32f5bff84f783430724)

v6.1.0 (4 August 2020)

Feature

  • Add support for dynamic tasks (689f6a9940f13f7482f62a78e53ea5cc5822cffa)
  • Context for DynamicGroups (9ecc69a243ea1ed21d14c17fff8ec4bf9e205169)
  • Add mutation and api function for canceling work items (0b04defaccb8e78746ec1f78826febd2c247aeb7)
  • Save the previous work item on the model (84cd768f99607e99cd966b95ba2aa6d6211c030e)

Fix

  • Fix flakiness by sorting the list during snapshotting (825492a27a8ce156395fbd19b99acd4f85e5e836)
  • Extend test_start_case (b70b6ea1e725a935207a690016030010646c5308)
  • Fix history by not using djangos update function (59ca6f5732d2fdc3ecb0191563c169066581e625)

Documentation

  • Remove duplicated intro section (175285142c6b623bf8c2132a4c73189bde5dc66e)

v6.0.0 (29 July 2020)

Feature

  • Always send the current user to event receivers (5f0e8691b3bc98174c055d6507167ef5fe10bed8)
  • Remove --keep from cleanup_history command (420c0cbaee0ff4fb7958c167c3b7b5bd353c4999)
  • Extend cleanup-command for cleaning up dangling models (489bb41acb16772f258c6a5aee42def99699c489)

Fix

  • Sort the groups jexl (be5487cb4cf7864130123dff74fc4aed55d80d5d)
  • Use fstring to log fstring message (538659138777c11022ebf15e90d7993d039db13e)

Breaking

  • remove --keep from cleanup_history command (420c0cbaee0ff4fb7958c167c3b7b5bd353c4999)

v5.9.0 (1 July 2020)

Feature

  • Allow dynamic groups for group JEXL transform (15491285b4fb4fbd50c791c424ef5337f043cf46) (Docs)

v5.8.1 (25 June 2020)

Performance

  • Follow-up historicalanswer migration using SQL (2fad5bc5503497eacc4a1f264756d0f05680afe4)
  • Add history_question_type to HistoricalAnswer (cb93e3853f9a7d50fe9720f98b86193d427fef34)

v5.8.0 (19 June 2020)

Feature

  • Extract code for cancelling cases and add a python API (ce74d06bdc9b0edb7080d6408f814ba434da31b4)

Fix

  • Consider workflow when completing work items (c024660d73103297dc6f96b2cdf7634190da3776)

v5.7.0 (6 June 2020)

Feature

  • Make validation and visibility decorators chainable (b8ed8c923296ca9100f76322b0d22ea66a1cfaba)
  • Add documentForms filter for allCases graph (ab14f8b96c1af838293688fd360d17c6b0466fa1)
  • Expose complete and skip work item to public API (32136bdfa2f894278f1d3c5b5f660774be5761a1)
  • Expose start case logic in public python api module (c78bbb72fe295fe54f81f4d49253aab6d6530c6f)

Fix

  • Remove DeprecationWarnings (262682e64cc3c6d7ca380ae6eb2fe1723ab05841)
  • Fix case status when completing parallel work items (2502b309260272a525abb56a461507999ea6c3ea)
  • Make tasks reusable in workflow flows (613386d7e8c9adb7fbf1e7d675b6840dccac99f8)
  • Use matching question for historicalanswer (097cdcbda1e05ffb22c38630ba9dae3efd31ce37)

Documentation

  • Switch to 'id -u' when creating a pipenv (06983b664e85a7259a25ce1a543c1851a015b72c)
  • Add docs for the new API functions (c5411b0cd9c51c1251925fe7db89c87a259b029c)

v5.6.0 (28 April 2020)

Feature

  • Add filters for object creation dates (310139c03b407efa4d473c1933a48906e9007a13)
  • Make created_by_group settable (ac3cb58959adcfaf386d8707416889f53ec248b8)

Fix

  • The requiredness check needs local context (2412577738dc708b1020105dd0e2eac656a332f9)
  • Return table rows in sorted fashion (aa0f72539e63d9103fe138180d81d3e99f4898af)
  • Ensure jexl evaluation is local to the relevant question (121bdb6ed075f6e968c7a4a250d045edec436f86)
  • Properly cache is_hidden/is_required (c09a13316e2a742964c9558c10f2a9327db0c933)

v5.5.2 (8 April 2020)

Fix

  • Fix evaluating requiredness from branch forms (062e350236f18031a4158cffe8b752192b7d2661)
  • Only accepts integer or string as id (562b4c0594336392abf5a3d3f83878d37e434e42)

v5.5.1 (27 Mar 2020)

Fix

  • fix WorkItem migration (870bd94a2a9f08d4268093649bb28f85e86811ac)

v5.5.0 (26 Mar 2020)

Feature

  • add name filter (a804572ad6979cf26c711a7f29cd44e37cb71c6e)
  • name and description (18a987370d9d6f2ec8db84ce225bd32af7de00f8)

Fix

  • fix answer transform for questions with multiple values (d0189cbac7d43ef479ff23ff0123dae23c98ca5d)

Documentation

  • add documentation about the GroupJexl (a3e5bd1e295606d64392a1205326fcad2b908092)

v5.4.0 (24 Mar 2020)

Feature

  • Add controllinggroups filter to workitemfilterset (2d4b43790a3f3ea9836a87b7177f71f8b2295d7c)
  • "controlling" for tasks and workitems (1ba66084d6e87de58894ed021ef99f26bfed0c90)
  • Implement caluma events (3efeba0f2495a3425226bdad92a786d511852299)
  • Cleanup context data for jexl expressions (4cc9a3d8b7bad18bc8378fe3611beed5b34ada18)
  • Structure objects can now be accessed via dot notation (8401af5bb1eafb0a966337db294e9646b2ea3907)
  • Fixture that can generate a full form and document (1e7dc050fb422274571fb8f3706c19960fa29e6b)
  • Add family_work_items to case type (41b2fb764d3ef104e9d3b29cd13cd09f69f54b1a)
  • Add rootcase filter (2c5145d7a2105159d244d3203b6602b5784a21e3)
  • Automatically set case family (2345af3903b06b4ac66f4004ea6a28a439a05d14)
  • Add case families (d7c0a662dff2f21b2226d6857b2837be35c6462e)

Fix

  • Answer transform shouldn't return value for hidden questions (984e2f9a0880eb4659917662d70ba40fdbb8d4c3)
  • Remove address_group from taskorderset (92dbb5b51c99c12ecfc2d568cfb06046388766ff)
  • The word "form" should always be the root form (787c30ca43578ec77ffa565e0ef0333237962d99)
  • Slug fields should be 127 chars (f6c3483e19dcf549238b7408a28fb5fd9f45bb9a)

Documentation

  • Extend validation with information about jexl expressions (2d8b1d3924001302268c3b6fe04b9b8ba102347c)

v5.3.1 (21 Feb 2020)

Fix

  • Fix loading of caluma settings (b001d6fd0eed601aea9b5e170c3f66b5dceca46d)

v5.3.0 (20 Feb 2020)

Feature

  • Implement copydocumentmutation (613ccd3b5962d5068a49ee44090e265786feee01) It is now possible to copy documents
  • Split settings file (c80cb4f3523fe8defc4befbe563905f9e0eb285d) Useful for integrating caluma as a django app
  • Increase max-length of slugs to 150 (5dbfff523d6486166c8e115071ca526bbd7c60e4)
  • Add support for minlength validation (4d67bcefc9659932f8edfd28f4864074c969cc95)

Fix

  • Do not validate row documents when attaching them (fee356ae9549ca0bf4df4a18f9d260f8dd544569)
  • Do not crash when lamenting invalid form slug (42ce73cf3049c0305efae4d35807cc5f7a982deb)
  • Handle is_required correctly in nested questions (cb78c0836d6d354aa78a6458a70ca660f6d7b32b)

Documentation

  • Add docs about usage of django apps and interfaces (c164ed340db0b7e1a2f8ca49bdc973ff8b8b8f90)
  • Add hint about snapshot updates and xdist (c0269950f1261884786306c013bd01945fee6498)

v5.2.1 (17 Feb 2020)

Fix

  • add unique_together to DynamicOption (c7460c01a4c764f580adc5c76cdca3cbe208b081)

v5.2.0 (13 Feb 2020)

Feature

  • new filter on cases to check for answers in work items (827399264e275784ec45643143a4ceb7a05751b2)
  • add indexes on timestamps and user fields (0ad0c41d79d6dddd08662a4e547094b2e5c82c3f)

Fix

  • file answers need special treatment (65e1a3787d5dcefa171694f538f69019e7d6b02d)
  • fix user object creation (6ed82c6ef865e5fc203733ec35eab209ca8781fd)
  • fix validation of dynamic answers (88431eaf61cf3f2c689c1417408873a1d7de055c)

Documentation

  • add guide on workflow implementation (WIP) (515add093009f9abb668e26eef00da434f176c57)

v5.1.0 (31 Jan 2020)

Feature

  • add hierarchical inspection classes (0d746594d9d14e23b7d90b359c8869b8d3ab7afc) Useful for extension points and caluma-as-django-app

Fix

  • validation performance vastly improved (25570a9b220d773b5a1517bb4e0b40d27ed306f1) form validation query count is roughly 10% of what it used to be

v5.0.0 (22 Jan 2020)

Feature

  • add assigned users filter (93badb4a55e91f7ffc6a3fc5828b18765cae9564)
  • prefix all apps with "caluma_" (928146577f3cb2f76a4e715ba29ae4e1eb547907) (BREAKING CHANGE: Extension code must be updated)

Fix

  • correctly handle indirectly hidden questions (cfe616684980d732fe667099a74461d6dbfaa732)
  • version bump (d2a4755c4e06d7f683165e582780ec3e5121c835)

Documentation

  • add maintainer's handbook (9f64fc4837bb5974fb7cd3caa67bb6c32bf2661e)

v4.3.0 (18 Dec 2019)

Feature

  • make caluma installable as django app (573e87a76ca3a2b70816ce98fd08c2cc71fc5c74)

v4.2.0 (17 Dec 2019)

Feature

  • helper to extract mutation parameters from request (197a775d332576b03853ded00c80c3abf46f4f25)
  • run pytest in parallel with xdist (9a435d9d0714aef64b955c2942803a17e561a721)
  • allow filtering answers to limit only visible answers (0eb037f8d1a09a7a752ac6bec58e9f4a70a17bdc)
  • add pipenv setup command to setup.py (448b821ab557e0af59fcab3a976c0e00a5e98e82)

Fix

  • use root form as form property in QuestionJexl context (5f422c01cb42d0d2833f79774eb34cd4fbbdb85a)
  • remove insignificant performance hack (db3d84234fa2d803f51ac3c892abba17d7c91614)
  • use "development" instead of "dev" as documented (1645ed996d4f310a91fb893627158945fbbedcc3)

Documentation

  • add info about the UID variable (f9a8d3ffee95b39474f31dd8d79d126ff6fde006)
  • add more detailed example for the pipenv workflow (16a94a81582b4164280157f559236d009ed4461d)

v4.1.0 (28 Nov 2019)

Feature

  • make permission decorators chainable (3052cbff33cb98ee22a7ed34c3133820121794bf)

Fix

  • validate dependencies correctly (854f6fa77048edeb9bc84d24036fff4fde2f05de)

v4.0.0 (21 Nov 2019)

Feature

  • add created_at, closed_at, modified_at filters to work items (b83ce9c6b0b8248b82216e30c65ecb400660fdc4)

Fix

  • optimize historical_qs_as_of (95e5fb9865d523e0acf96c54743cebf70b6344a9)
  • fix duplicate documents (68934392c56e2d1734a5046e7e5182e07ce3fd0e)
  • use LocalizedValue for translations (3cf3720f94ed64367c55b700be97a955472b00e4)
  • correctly handle is_hidden regarding dependencies (a068c2c04b94f94b25087c769a931ce8f549251f)

Breaking

  • allow Answers with empty value (81cbe9aae553ed91a86c1813a47085fb3b386713)

Documentation

  • explain how to use pipenv (745380f39b45fdf1d936aad87a368c2b37e75109)

v3.0.0 (6 Nov 2019)

Version 3.0.0. Main changes:

  • License changed to GPL 3.0 (or later)
  • Dynamic data source improvements (Answers now store values for the case where the value won't be available in the future anymore)
  • Allow skipping of work items

Feature

  • allow skipping of work items (e84f9360cb245587dab7e75d84134b7999bfa2e5)
  • add status_skipped to possible workitem states (c3d99bc9d911a103796821e09f3f65bb543457ca)
  • switch main license to GPL-3.0-or-later (978f18aaa725ad779bd0238b82528401f36147bb)
  • implement dynamic data source (63ffe863bd17cc75c75d7834e7f38e45268022da)

Fix

  • question id/slug should be of type id (69511c17cccba36775840976d384010867256499)
  • add user and group to dynamic option (ba89f88b7cec45b17e0c6036884998cdad873f0f)
  • raise a 401 if user is not logged in (1b5851c2025d1e3b95353f71d2678f640847955e)
  • add question to validate_answer_value method (3667e3d3aaf45459135718c401e40c02535adc01)
  • fix DynamicOption model (35935ddd04861a7c2c9cc0ec8aa92de983f1c334)
  • do not return questions multiple times (ec285957c661b04ed10f305fbae7b6824cfd4b97)
  • remove dynamicoptionSet form schema (0391c04481097792ef608afdebb6f39d10077959)
  • reintroduce ordering by deadline on work items (fed67da288aebff593cc77855b1b5c39f44d0b91)
  • fix ordering by question value (1dcec885518d6f654773e07677cb58649613ede2)
  • revert dynamic data source (85fab681039f5f11c484a3c525631af6e0eddd25)
  • validate requiredness recursively for subforms (844b914f98f1ed002f9dbbabffaf445753a18728)
  • do not validate hidden questions (1fb7bd5b93368c0c5c55bbc6e941f8208aeb2929)

Breaking

  • Add the parameter question to the validate_answer_valuemethod and add a new lookup to check if a dynamic_option already exists. (3667e3d3aaf45459135718c401e40c02535adc01)
  • The value field on the DynamicOption model is renamed to slug and not optional anymore. (35935ddd04861a7c2c9cc0ec8aa92de983f1c334)
  • The optional answer_value parameter for the DataSource.get_data() method was reverted. (85fab681039f5f11c484a3c525631af6e0eddd25)

Documentation

  • explain license choice (4d59af520da53b44c3771eb53c451d209c1aafa5)

v3.0.0a1 (6 Nov 2019)

Feature

  • allow skipping of work items (e84f9360cb245587dab7e75d84134b7999bfa2e5)
  • add status_skipped to possible workitem states (c3d99bc9d911a103796821e09f3f65bb543457ca)
  • switch main license to GPL-3.0-or-later (978f18aaa725ad779bd0238b82528401f36147bb)
  • implement dynamic data source (63ffe863bd17cc75c75d7834e7f38e45268022da)

Fix

  • add user and group to dynamic option (ba89f88b7cec45b17e0c6036884998cdad873f0f)
  • raise a 401 if user is not logged in (1b5851c2025d1e3b95353f71d2678f640847955e)
  • add question to validate_answer_value method (3667e3d3aaf45459135718c401e40c02535adc01)
  • fix DynamicOption model (35935ddd04861a7c2c9cc0ec8aa92de983f1c334)
  • do not return questions multiple times (ec285957c661b04ed10f305fbae7b6824cfd4b97)
  • remove dynamicoptionSet form schema (0391c04481097792ef608afdebb6f39d10077959)
  • reintroduce ordering by deadline on work items (fed67da288aebff593cc77855b1b5c39f44d0b91)
  • fix ordering by question value (1dcec885518d6f654773e07677cb58649613ede2)
  • revert dynamic data source (85fab681039f5f11c484a3c525631af6e0eddd25)
  • validate requiredness recursively for subforms (844b914f98f1ed002f9dbbabffaf445753a18728)
  • do not validate hidden questions (1fb7bd5b93368c0c5c55bbc6e941f8208aeb2929)

Breaking

  • Add the parameter question to the validate_answer_valuemethod and add a new lookup to check if a dynamic_option already exists. (3667e3d3aaf45459135718c401e40c02535adc01)
  • The value field on the DynamicOption model is renamed to slug and not optional anymore. (35935ddd04861a7c2c9cc0ec8aa92de983f1c334)
  • The optional answer_value parameter for the DataSource.get_data() method was reverted. (85fab681039f5f11c484a3c525631af6e0eddd25)

Documentation

  • explain license choice (4d59af520da53b44c3771eb53c451d209c1aafa5)

v2.0.0 (18 October 2019)

This is the second major release of Caluma.

Apart from a couple of new features, we changed the license from MIT to AGPL. The reasons for this are documented in a followup (see #749).

There's another backwards-incompatible change regarding the data sources for dynamic (multiple) choice questions, prompting the version bump.

New in this version is also the separation between ordering and filtering in the queries, and a cleanup command for historical data.

Feature

  • pass actual answer value to data source (3b26162db5bfd0b48b908ef7609abeddcf24af8b)
  • add order filter for workflow models too (b2fb9c73d451d2292e2bdafa25b9da1151d0915b)
  • add test for new order filters (344bc9d502469acc5597355d1b832e68b5893e11)
  • introduce new-style ordering for form nodes (f73f8e5a6c3d287804dca88da636c515c26b2026)
  • implement new order filter (012d1f19089dff4bb0125d982cc6688374e4f68a)
  • start using the collection filterset factory (97394c7e523f40af102828c94dd01de7c3a97f7a)
  • factory for unionized filters (686484d1e732828db2e55b7056a83925104da676)
  • expose original document id (051cf01ed283dbc8b3c00a91f9a124a764f9d755)
  • add cleanup command (a66582a4945c3562828cdca284e3fff8da11af98)

Fix

  • typo (9cd21c195383ec3642a0e1bc5ef2cc46c1f269ef)
  • link guide (57df4a6dc35c54aa32bfb1eccef64465191f2b4a)
  • don't pass self to super().init() call (748c99d6315d99551f9e950b3888cafd321b8b58)
  • correct svg font (576e2fe71a5562f1c41fdce83ab926be0ecbab45)
  • cleanup_history - add force argument (9191b4e3638f866d256ac3b40a59b6839a6d4ef5)

Breaking

  • DataSource.get_data() methods must accept an optional answer_value parameter. (3b26162db5bfd0b48b908ef7609abeddcf24af8b)
  • License change: Move to AGPL (bfb66199)

Documentation

  • update ordering documentation (85a1143b02884f75fd3c24fccfa842c5f783adf6)
  • add note on deprecation of old-style filters (b93e27c49f5b57d0acbdd560766ddff2baefc041)
  • extend the guide with form-builder steps (bdd183d111e844e739c74d0536d2c4e29aec7b39)
  • add guide (WIP) (822f4c1c31ee3f404b5c4b9cc76d96e2a1be1a5f)
  • document cleanup commands in README (dc58593af1d147bd06cb62b02f2d27459cc7f01e)

v1.0.0 (25 September 2019)

Initial release