Find licenses using subscription name
Problem
We currently lookup licenses for the "Download License" feature from the license-app using 4 attributes (email
, plan_code
, users_count
, and expires_at
). This link between the two systems seems a bit flimsy.
Proposal
On the license app, add a new column to store the subscription name
. We may need to create a script that contacts the Zuora API and obtains the subscription name
based on the subscription id
that we've stored on the license app. Once this is ready on the license app, we can just find by the subscription name
instead of using all the 4 fields listed above.
This was originally proposed by Rubén in #281. This issue also relates to #636 (closed).
Result
A cleaner link between the subscription in the customers-app and the license in the license-app.
Next steps (if any)
Once this is in place, the customers-app can request a license to be created if it does not yet exist in the license-app.