API changes to convert HAML renewal banner to Vue component
This is foundational work for Show renewal alert 3 months prior to expiration... (#363440) and Handle startup program subscription renewal (#365074).
We need to access the below information about subscription renewal from frontend to be able to convert the existing HAML banner to Vue component.
subscribable.block_changes?
subscribable.expired?
subscribable.expires_at
renew_subscription_path
upgrade_subscription_path
Proposal
We already have these fields in helpers, we need to make them accessible from the frontend through the API. We need to verify if some of it already exists in the GraphQL endpoint and add missing fields to the appropriate GraphQL types.
There is also some logic around subscription/license which needs to be preserved.
More discussion in planning issue here: https://gitlab.com/gitlab-org/gitlab/-/issues/363537#note_1023508958
Edited by Vamsi Vempati