django-fsm-log icon indicating copy to clipboard operation
django-fsm-log copied to clipboard

feat(StateLog): Migrated state log from integerfield to charfield

Open josh-stableprice opened this issue 4 years ago • 8 comments

Here is a basic implementation of the migration from integer primary key to allow UUIDS, with a check to warn people who use the field that they may need to migrate.

The check can be acknowledged and ignored by adding 'django_fsm_log.W001' to SILENCED_SYSTEM_CHECKS as documented here https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-SILENCED_SYSTEM_CHECKS

I also suggest adding some kind of warning on the main page and bumping the version number significantly to stop it being pulled in automatically by Poetry and Pipenv.

Fixes #34

josh-stableprice avatar Jul 22 '19 09:07 josh-stableprice

Tests failed, however I'm unsure why

josh-stableprice avatar Jul 23 '19 08:07 josh-stableprice

Tests failed, however I'm unsure why

It's a flake8 (linter) error.

https://travis-ci.org/gizmag/django-fsm-log/jobs/562015145#L507

django_fsm_log/conf.py:1:1: F401 'django.conf.settings' imported but unused

tysonclugg avatar Jul 23 '19 13:07 tysonclugg

Sorry, I realize I wasn't clear. I don't understand how what I did caused it to fail as I don't remember touching this part of the codebase. I'm wondering if this is a known error, especially as looking at that line I see #noqa:F811 which makes me think the code has changed to F401 recently

On Tue, 23 Jul 2019 at 14:23, Tyson Clugg [email protected] wrote:

Tests failed, however I'm unsure why

It's a flake8 (linter) error.

https://travis-ci.org/gizmag/django-fsm-log/jobs/562015145#L507

django_fsm_log/conf.py:1:1: F401 'django.conf.settings' imported but unused

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gizmag/django-fsm-log/pull/97?email_source=notifications&email_token=ALEDBXCNHLY4XAMQAJLUZC3QA4A5LA5CNFSM4IFWPAJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2TDAYI#issuecomment-514207841, or mute the thread https://github.com/notifications/unsubscribe-auth/ALEDBXGYYD5G5WN3EYOFBGTQA4A5LANCNFSM4IFWPAJA .

-- Josh Harwood Backend Developer Stable Group Ltd

Email: [email protected] Website: stableprice.com https://stableprice.com/ Office Address: 3 Whitehall Ct, London, SW1A 2EL, UK Company Twitter: https://twitter.com/stableprice> Company LinkedIn: https://www.linkedin.com/company/18252297/

josh-stableprice avatar Jul 23 '19 14:07 josh-stableprice

Is there any plans to merge this PR? I use UUID as PKs on my models, and I can't see any workaround to use this project.

diegoponciano avatar Jul 31 '21 21:07 diegoponciano

@josh-stableprice the core of your PR is actually very valuable.

The project recently got a massive update. Would you mind rebasing or cherry-picking the core of your changes ? Also adding some failing tests for for example UUIDs as PK would be desirable. Thanks in advance!

MRigal avatar Jan 14 '22 21:01 MRigal

Hi guys. Any reason to not merge this PR? The project is still unusable to many people just because of this :/

ddahan avatar Sep 09 '22 19:09 ddahan

Can this PR be fixed and merged so the UUID issue can be solved please? Thanks!

achillis2 avatar Mar 24 '23 01:03 achillis2

Will be solved by #176 Please help there (review, test, give a feedback, ...)

ticosax avatar Apr 05 '23 12:04 ticosax