TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
975 stars 306 forks source link

Hint to gateway claiming for gateways with certain EUIs #4458

Closed kschiffer closed 3 years ago

kschiffer commented 3 years ago

Summary

A lot of users currently use gateway registration instead of claiming when using The Things Indoor Gateway, since they do not know about the difference. We should avoid confusion by checking the Gateway EUI in the registration form and show a note leading to claiming if necessary.

Why do we need this?

To assist TTIG users that want to use their gateway with TTS.

What is already there? What do you see now?

Gateway claiming form and gateway registration form.

What is missing? What do you want to see?

We can check whether the Gateway EUI starts with 58A0CBFFFE (this is the TrackNet prefix that all TTIGs use) and if so, display a warning in the form:

It appears like you are trying to register a <b>The Things Indoor Gateway</b>. Such gateways are already preregistered and need to be claimed instead. <Link to="/gateways/claim">Click here</Link> to go to gateway claiming.

See also <DocLink to="/gateways/thethingsindoorgateway/#claiming-the-things-indoor-gateway">Claiming The Things Indoor Gateway</DocLink> and <DocLink to="/gateways/gateway-claiming/">Gateway Claiming</DocLink>.

How do you propose to implement this?

We should use the <Form.InfoField /> for this message. It should appear after the user blurred the Gateway EUI input.

How do you propose to test this?

Manual testing should suffice.

Can you do this yourself and submit a Pull Request?

@bafonins

I allowed myself to put this into the current milestone since this is a small task with high impact. Please re-schedule if need be.

cc @KrishnaIyer @htdvisser please verify the warning message.

kschiffer commented 3 years ago

Wrong repository. Moved to: https://github.com/TheThingsIndustries/lorawan-stack/issues/2853