We're migrating from the old AppEngine Datastore console to the new console. Internally, we have times when we're trying to generate links to specific datastore entities.
For the old GAE console, you can use the encoded URL safe key to link to an entity, such as:
return fmt.Sprintf("https://appengine.google.com/datastore/edit?key=%s", key)
where key
is the encoded URL-safe key from the entity.
However, in the new cloud console, Google returns "failed to load" when I try to load the URL:
return fmt.Sprintf("https://console.cloud.google.com/datastore/entities/edit?key=%s", key)
where key
is the encoded URL-safe key from the entity.
It will load if I decode the key first and give the URL the namespace and kind, but only if it's the entity query page (not the edit page):
return fmt.Sprintf("https://console.cloud.google.com/datastore/entities/query?ns=%s&kind=%s&key=%s", namespace, kind, key)
But the purpose of an encoded key is to not have to decode that.
So my question:
Is there a way to get the new cloud console to accept the encoded key and load the entity edit page?