Open jpmeijers opened 1 year ago
This issue is related to https://github.com/TheThingsNetwork/lorawan-stack-migrate/issues/52
These two issues both prevent me from batch migrating an application from TTS-CE to a TTS Cloud instance.
list
and get
have different semantics due to the way the end device data is stored. There are no List
/ efficient projection for the NS/AS/JS entities, only IS entities, so a client list
implementation like the CLI would have to manually do a Get
to these stores. The migration guide uses only get
for this exact reason, and without having List
on the remaining stores, I am inclined not to fake it by doing potentially thousands of Get
requests.
Summary
As mentioned in https://github.com/TheThingsNetwork/lorawan-stack/issues/5906 one should be able to run the command
ttn-lw-cli end-devices list [application-id] [flags]
to get an export of all devices in an application. I have tried this with the recommended set of flags from https://www.thethingsindustries.com/docs/getting-started/migrating/migrating-from-ce-to-ch/establish-new-session/ and that does not work. All I get is an export that includes the device_id, application_id, dev_eui, join_eui and created_at and updated_at.Steps to Reproduce
$ ttn-lw-cli end-devices list my_application --name --description --lorawan-version --lorawan-phy-version --frequency-plan-id --supports-join --root-keys --mac-settings --limit 1000 > devices-ttn.json
Current Result
Expected Result
The json should include:
Relevant Logs
No response
URL
No response
Deployment
The Things Stack Community Edition
The Things Stack Version
3.22.1
Client Name and Version
Other Information
No response
Proposed Fix
No response
Contributing
Code of Conduct