Improves handling port mapping #29

Merged
pratyush merged 2 commits from fix/port_mapping into master 2025-04-23 06:49:43 +02:00
Owner

switched port field to a JSONField adds a helper function to display server port mapping in admin launching a container will map the ports appropriately Instead of typing json to map ports we have a widget replaced by such text fields. where one can + button to add or - to remove i.e. [container_port/proto]:[host_port] At first port was an IntegerField. Hence i added a manual migration which is the latest one to get them to be default:port(old value)

Signed-off-by: Pratyush Desai pratyush.desai@liberta.casa

switched port field to a JSONField adds a helper function to display server port mapping in admin launching a container will map the ports appropriately Instead of typing json to map ports we have a widget replaced by such text fields. where one can + button to add or - to remove i.e. [container_port/proto]:[host_port] At first port was an IntegerField. Hence i added a manual migration which is the latest one to get them to be default:port(old value) Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
pratyush added 1 commit 2025-04-23 00:16:03 +02:00
switched port field to a JSONField
adds a helper function to display server port mapping in admin
launching a container will map the ports appropriately
Instead of typing json to map ports we have a widget
replaced by such text fields. where one can + button to add or
- to remove
i.e.
 [container_port/proto]:[host_port]
At first port was an IntegerField.
Hence i added a manual migration which is the latest one
to get them  to be default:port(old value)

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
Author
Owner

There has some dirty / repetitive code perhaps slipped into this. I’m gonna have to assimilate all such issues and solve them premerge. ramifications of things like the templae for the widget .

There has some dirty / repetitive code perhaps slipped into this. I'm gonna have to assimilate all such issues and solve them premerge. ramifications of things like the `templae` for the `widget` .
pratyush added 1 commit 2025-04-23 06:29:22 +02:00
I think we need to check these snippets rather carefully
somepoint not too far

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
pratyush merged commit c836caa6af into master 2025-04-23 06:49:43 +02:00
pratyush deleted branch fix/port_mapping 2025-04-23 06:49:44 +02:00
pratyush changed title from WIP : Improves handling port mapping to Improves handling port mapping 2025-04-24 08:56:29 +02:00
Sign in to join this conversation.
No description provided.