feature/#26_enhance_storage_stock_display #37

Merged
sst merged 18 commits from feature/#26_enhance_storage_stock_display into develop 2025-02-03 22:20:05 +01:00
Collaborator

Got the stuff to work for me.
...did no excessive test of the overall function after changing this...

The performance did suffer a bit due to the recursions added for the number of parts annotations and the dynamic description foo...

...still feels good enough on my debug system - if you see an Issue I can try to profile and improve the performance again.
...But I value the new features more than the performance right now - if this becomes a problem in the future we still can disable it.

The search for storages is quite bad as there is no good way to search for the full path (except autogenerating a database field containing the path cyclically) - so the way to go is copy paste the uuid of the storage to move a stock to...

Got the stuff to work for me. ...did no excessive test of the overall function after changing this... The performance did suffer a bit due to the recursions added for the number of parts annotations and the dynamic description foo... ...still feels good enough on my debug system - if you see an Issue I can try to profile and improve the performance again. ...But I value the new features more than the performance right now - if this becomes a problem in the future we still can disable it. The search for storages is quite bad as there is no good way to search for the full path (except autogenerating a database field containing the path cyclically) - so the way to go is copy paste the uuid of the storage to move a stock to...
mhu was assigned by sst 2025-01-31 23:34:20 +01:00
sst added 14 commits 2025-01-31 23:34:20 +01:00
sst added spent time 2025-01-31 23:34:34 +01:00
10 hours
sst added 2 commits 2025-01-31 23:59:41 +01:00
sst added 1 commit 2025-02-01 00:16:40 +01:00
Owner

Can you add your latest migrations to the repo?
I get a warning, that the models contain chainges that are not yet reflected in the migrations:
These are missing:

class Migration(migrations.Migration):

    dependencies = [
        ("parts", "0016_componentparametertype_interfix"),
    ]

    operations = [
        migrations.AlterField(
            model_name="componentparametertype",
            name="interfix",
            field=models.CharField(
                blank=True,
                help_text="char to be used as decimal point in dynamic description eg. 2R2",
                max_length=10,
            ),
        ),
        migrations.AlterField(
            model_name="componenttype",
            name="description_template",
            field=models.TextField(
                blank=True,
                help_text="Template to assemble the dynamic description. Use template syntax, access the component with 'object', parameters with 'param_*'.",
            ),
        ),
    ]

Other than that, it seems to work for me. The thing with the django templating for the component parameters is nice :) We need to document this somewhere. Probably make a help page on the app itslef to show some examples of the possibiliteis. i was only able to get it working by reading the source :)

Can you add your latest migrations to the repo? I get a warning, that the models contain chainges that are not yet reflected in the migrations: These are missing: ``` class Migration(migrations.Migration): dependencies = [ ("parts", "0016_componentparametertype_interfix"), ] operations = [ migrations.AlterField( model_name="componentparametertype", name="interfix", field=models.CharField( blank=True, help_text="char to be used as decimal point in dynamic description eg. 2R2", max_length=10, ), ), migrations.AlterField( model_name="componenttype", name="description_template", field=models.TextField( blank=True, help_text="Template to assemble the dynamic description. Use template syntax, access the component with 'object', parameters with 'param_*'.", ), ), ] ``` Other than that, it seems to work for me. The thing with the django templating for the component parameters is nice :) We need to document this somewhere. Probably make a help page on the app itslef to show some examples of the possibiliteis. i was only able to get it working by reading the source :)
sst added 1 commit 2025-02-02 11:52:58 +01:00
Author
Collaborator

...added the missing migration.

...just the adding of help texts - did not expect this to be migrated to the db at all (it worked without migration as well)

...I would prefer adding a UI to configure the template including a live preview of a selected component.
...added it as a new ticket: #38

...added the missing migration. ...just the adding of help texts - did not expect this to be migrated to the db at all (it worked without migration as well) ...I would prefer adding a UI to configure the template including a live preview of a selected component. ...added it as a new ticket: #38
sst merged commit 8b3ef1af25 into develop 2025-02-03 22:20:05 +01:00
sst deleted branch feature/#26_enhance_storage_stock_display 2025-02-03 22:20:05 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Total Time Spent: 10 hours
sst
10 hours
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mhu/shimatta-kenkyusho#37
No description provided.