Commit graph

37 commits

Author SHA1 Message Date
Jennifer Richards 6b826fd985
refactor: Purge old migrations and update ci to build on a clean schema (#5431)
* refactor: Remove all existing migrations

* refactor: Create clean set of migrations

* chore: Skip check_statetype_slugs when DB is not yet populated

* fix: Do not cache active_groups_menu on module import

* fix: Do not patch timezone awareness out of oidc-provider

* refactor: Migrate to create postgres schema, only use pgloader for data

* ci: Use migration scripts from feat/pg-migrations branch

* Revert "ci: Use migration scripts from feat/pg-migrations branch"

This reverts commit c82f64c614241ccede4865a50d494725c8a47c15.

* ci: Run check before migrate

* fix: Remove redundant migration caused by merge error

* chore: Add casts/ALTER TABLEs to eliminate pgloader errors/warnings

* chore: Change schema name to match docker image assumptions

* chore: Clear out schema so we get a clean start in case of a retry
2023-03-28 18:06:07 +09:00
Jennifer Richards df37793e14 Use Roles instead of dedicated model for liaison statement group contacts. Fixes #3100. Commit ready for merge.
- Legacy-Id: 18828
2021-02-12 16:39:20 +00:00
Henrik Levkowetz 088033d843 Added matching indexes to a number of models with ordering by multiple keys.
- Legacy-Id: 18664
2020-11-09 19:41:12 +00:00
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz 8e313e4ed5 Adjusted migrations for Python2/3 compatibility.
- Legacy-Id: 16633
2019-08-08 17:11:14 +00:00
Henrik Levkowetz 2d7c9629aa Added 'from __future__' imports all over the place, to bring code behaviour into closer alignment between python2 and python3
- Legacy-Id: 16446
2019-07-15 15:40:51 +00:00
Henrik Levkowetz d7f5c84182 Initial 2to3 patch with added copyright statement updates.
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz 426870b766 Merged in the Document and DocAlias primary key change and m2m work in ^/personal/henrik/6.96.1-docalias.
- Legacy-Id: 16261
2019-06-15 12:00:48 +00:00
Henrik Levkowetz 815602351f This is a series of 50 migrations that changes the Document and DocAlias
primary keys from character strings to integers, and makes corresponding code
changes.

This was prompted by database limitations discovered when trying to make
DocAlias use a m2m document field; with 255 long strings as primary keys for
Document and DocAlias this violated the MySQL database limitations.

Changing the primary keys to integers should also improve efficiency.  

Due to the data migrations which create the new integer primary keys and adds
corresponding integer foreign keys matching the previous string foreign keys
in all tables having foreign keys to Document and DocAlias, some of these
migrations take a long time.  The total set of migrations are expected to have
a runtime on the order of 2 hours.
 - Legacy-Id: 16237
2019-06-10 11:32:46 +00:00
Henrik Levkowetz 6e1d4d45d8 Added some missing migrations
- Legacy-Id: 14697
2018-02-25 20:08:37 +00:00
Henrik Levkowetz 06362ec046 Got rid of old migrations and created new initial migrations.
- Legacy-Id: 14662
2018-02-21 23:46:22 +00:00
Henrik Levkowetz 19ec458668 Added migrations for the model changes done for the Django 1.8 upgrade.
- Legacy-Id: 12478
2016-12-07 19:41:48 +00:00
Ryan Cross 4634b2dd73 Extended Liaison to_contacts field to 2000 characters. Fixes #2024. Commit ready for merge.
- Legacy-Id: 12132
2016-10-13 18:31:18 +00:00
Henrik Levkowetz ff6969815c Added a migration to go with the liaison updates.
- Legacy-Id: 10507
2015-11-19 21:19:52 +00:00
Ryan Cross eed28dbb49 Small fixes to Liaison Tool changes. Commit ready for merge
- Legacy-Id: 10465
2015-11-12 18:44:28 +00:00
Ryan Cross 1ea5dcf907 Liaison changes from IETF 94 demo. Includes tab for Action Needed statements and ability to add comments to history. Commit ready for merge
- Legacy-Id: 10464
2015-11-12 00:26:52 +00:00
Henrik Levkowetz a7667fb29e Merged in branch/amsl/liaisons/6.4.1@10160 from rcross@amsl.com, bringing in the new liaison tool.
- Legacy-Id: 10161
2015-10-09 19:48:21 +00:00
Ole Laursen 70ad4d1742 Add liaisons migration to fix the few old statements that do not have a title (add an empty initial migration to make South happy)
- Legacy-Id: 8735
2014-12-12 17:30:55 +00:00
Emilio A. Sánchez López f72b0a1c93 Add log functionality to migrations. Close #1424
- Legacy-Id: 8048
2014-07-04 09:42:29 +00:00
Emilio A. Sánchez López 6c927f11a1 Liaison data migration to new models. See #1424
- Legacy-Id: 7913
2014-06-13 10:34:14 +00:00
Ole Laursen 0dabaf96fb Split database into current and legacy, adding importer to copy reused
tables from legacy to new through Django (with minimal cleaning to
have the import go through) and removing migrations from submit and
liaisons as they interfere with the clean slate of the new database,
adjusting IPR model to add null=True on fields with nulls in the
database
 - Legacy-Id: 3778
2011-12-22 18:34:19 +00:00
Ole Laursen 8f6403bf2f Add migration for new schema
- Legacy-Id: 3372
2011-08-25 11:44:27 +00:00
Henrik Levkowetz 63bc9cff6d Changes from esanchez@yaco.es, changesets 2783-2789. Lets the secretariat send liaisons on behalf of others, corrected powers to liaison managers, and other fixes.
- Legacy-Id: 2800
2011-02-02 16:04:42 +00:00
Emilio A. Sánchez López 31ae2edb8f We need to store the unique id of the entity in the To field to allow that an SDO Liaison Manager should be able to edit a liaison sent to his SDO. See #577
- Legacy-Id: 2784
2011-02-01 16:55:25 +00:00
Henrik Levkowetz eafcdccd3d Merged from log:branch/iesg-tracker@2571: IOLA's port of cron-scripts.
- Legacy-Id: 2578
2010-10-26 14:49:12 +00:00
Emilio A. Sánchez López 637357c402 Fix Data Migrations. Fixes #389
- Legacy-Id: 2565
2010-10-20 09:37:08 +00:00
Emilio A. Sánchez López ed2e87ec69 Fix Data Migrations. Fixes #389
- Legacy-Id: 2555
2010-10-15 10:08:58 +00:00
Emilio A. Sánchez López 4b96b2b309 * Added a taken care field to stop deadline notifications
* Set 'out of date' liaisons as already taken care.
 * Command to notify for liaisons close to their deadlines.

Fixes #384
 - Legacy-Id: 2544
2010-10-08 08:21:48 +00:00
Emilio A. Sánchez López a9cab1ea36 Normalize liaisondetail fields so liaisons could be sorted correctly.
* Assign a title to liaisons that have no title (Copy the title of the first attachment of set a default title)
 * Copy old "From" information to from_raw_body field

See #383
 - Legacy-Id: 2542
2010-10-07 11:31:02 +00:00
Emilio A. Sánchez López 75f1129524 Fixed migration script. Fixes #381
- Legacy-Id: 2541
2010-10-04 07:28:42 +00:00
Emilio A. Sánchez López 82f4e3f660 Drop the bad migration script. See #381
- Legacy-Id: 2540
2010-10-04 07:27:25 +00:00
Emilio A. Sánchez López 20032758a0 Model migration to allow liaison references. See #381
- Legacy-Id: 2537
2010-10-01 10:15:16 +00:00
Emilio A. Sánchez López ed0277cdb9 Create liaison manager group.
Users in that group can send outgoing liaisons from any ietf entity.
Users in that group can send incoming liaisons from any sdo.
Fixes #356
 - Legacy-Id: 2467
2010-08-06 17:41:42 +00:00
Emilio A. Sánchez López 8e7295c996 Management of pending liaisons.
If an user can approve pending liaisons he/she have access to:
 - List of pending liaisons he/she can approve
 - Detailed view of a pending liaison with an approval button
Fixes #357
 - Legacy-Id: 2466
2010-08-06 17:01:23 +00:00
Emilio A. Sánchez López 58988ef63e Save approval state of an outgoing liaison and do not public list the not approved ones. Fixes #353
- Legacy-Id: 2456
2010-07-29 11:48:49 +00:00
Emilio A. Sánchez López 61a512dcaa Unambiguos from body. See #342
- Legacy-Id: 2376
2010-07-23 10:01:48 +00:00
Emilio A. Sánchez López 8ef3b7d935 South migration to add the new sdoauthorizedindividual table. Fixes #344
- Legacy-Id: 2333
2010-07-14 08:12:31 +00:00