Request for AutoConnection for sauna-sim

  • name: sauna-sim
  • description: An ATC Training Simulator primarily to be used on the VATSIM Network. Consists of UI and API. UI is built in Tauri (which is built in Rust) and bundles and auto-starts the API. The API is built in ASP .NET Core 8.0. The UI interacts with the API through HTTP requests.
  • snapcraft: https://github.com/sauna-sim/sauna-ui/blob/master/src-tauri/packageinfo/snapcraft/snapcraft.yaml
  • upstream: SaunaSim Github Repo
  • upstream-relation: Owner of both upstream and snap package
  • interfaces:
    • \network-status:
      • request-type: auto-connection
      • reasoning: The UI needs this to determine which port is available on the system to start the API on. ASP .NET also needs this for the same reason.
    • \network-observe:
      • request-type: auto-connection
      • reasoning: This is required in order for the UI to make HTTP requests to the API on the aforementioned port. Without this, the UI’s sandbox will not allow it to make these requests.

Currently, unless the user manually connects these two interfaces, the UI simply cannot interact with the API rendering the application unusable. The UI will only ever interact with the API over this port and will start and shutdown the API itself. The API is bundled with the UI and is included as part of the snap.

Hey @997r8v10

According to the documentation network-status should auto-connect by default.

Also according to your reasoning I think that network interface (which also auto-connects by default) could be enough and network-observe is possibly not needed. Could you please give it a try?

Thanks

Ah yes, you are correct about network status. I misread that in the documentation. However, network-observe is required. Without it, the react app simply keeps throwing errors when trying to make http requests to the API claiming that it doesn’t have that permission in the sandbox. I figured network should be enough but that was not the case.

Thanks for checking. Then +1 from for grating suana-sim auto-connection to network-observe

Hi @997r8v10! +1 from me as well for auto-connect of network-observe for sauna-sim.

+2 votes for, 0 votes against, granting auto-connect of interface network-observe to snap sauna-sim. This is now live.