al-objid icon indicating copy to clipboard operation
al-objid copied to clipboard

Organization-wide ranges

Open cegekaJG opened this issue 1 year ago • 1 comments

Our company has a few different apps that can be reused for multiple clients. AL Object ID Ninja can ensure that all objects within an app get assigned a unique ID, but it can't tell me if an ID is already being used by a different app that may or may not have to be installed on the same environment. Here's my suggestion for a possible workflow:

  1. Request the backend to create a "Project Token"
  2. Add the project token as an organization secret on GitHub
  3. In a repository, add a .objidconfig file containing the name of the secret (or enter the token explicitly)
  4. Done. The reserved IDs of the repository can now be shared with other repositories using the same project token.

This way, it would be possible to reuse the same object range for all apps without collisions, and even use multiple project tokens to make sure the ID doesn't collide with client-specific IDs.

cegekaJG avatar Feb 27 '24 14:02 cegekaJG

I've noticed that this feature is already somewhat covered with App Pools: https://github.com/vjekob/al-objid/blob/master/vscode-extension/docs/app-pools.md I'm not sure if it's possible to assign an app to multiple pools however, so I'm leaving the ticket open for now.

cegekaJG avatar Feb 27 '24 14:02 cegekaJG