/srv/irclogs.ubuntu.com/2020/07/16/#juju.txt

achilleasaany ideas why the multiwatcher (core/multiwatcher/types.go) seems to track both Ports and PortRanges? Is it safe to drop Ports and emulate a PortRange -> []params.Port operation for legacy API calls?08:37
stickupkidachilleasa, what happens if you have holes in the PortRange, is that what Ports can do differently?08:48
achilleasastickupkid: we don't seem to be storing ports ATM and everything ports-related has deprecation warnings (see core/network/ports.go)08:50
achilleasaI am considering to introduce extra functionality (in a separate PR though) to do port slicing, e.g. open 100-200/tcp, close 150/tcp; result: 100-149/tcp, 151-200/tcp08:51
stickupkidachilleasa, seems logical08:51
achilleasaplus all the allwatcher bits completely ignore subnets which is a pain08:52
stickupkidmanadart_, achilleasa should we be using API results for the CLI, we have done in the past, wondering if we should in the future?10:17
stickupkidI'm on about this stuff https://github.com/juju/juju/blob/develop/api/charmhub/data.go#L107-L15810:18
stickupkidthe issue I have with it, is that we have to encode yaml tags on to types for view only scenarios10:21
manadart_stickupkid: I guess it's less worse if the lib is ours, but technically we should have display types.10:22
stickupkidmanadart_, exactly my thoughts, but no where in juju does this10:22
manadart_stickupkid: Isn't there generation/branch and space stuff that has display types?10:23
stickupkidlet me check10:23
stickupkidif so that's precedence enough for me10:24
stickupkidthen we have vertical boundaries and nice code separation10:24
stickupkidmanadart_, pointer?10:25
manadart_See core/model/generation.go. Those are actually transformed prematurely and returned by the API client, but they are for display.10:28
stickupkidmanadart_, quick ho?10:29
manadart_And cmd/juju/space/show.go10:29
gnuoyI'm looking at a charm which provides a service to multiple applications in multiple models via cross model relations. Would I be right in saying there is no way for the charm to say which relations come from the same remote model ?14:09
stickupkidhml, charmhub url model-config is ready for review https://github.com/juju/juju/pull/1183416:39

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!