Make default account id configurable for Schema service
Context and Scope
Hardcoded shared account id value as "common" in org.opengroup.osdu.schema.constants.SchemaConstants makes it difficult to run Schema service without a configured account. Currently, its presence is obligatory. However, an absence of "common" leads to a lot of exceptions related to NPE, when Schema service is trying to reach storage services with a help of this account.
Decision
move
public static final String ACCOUNT_ID_COMMON_PROJECT = "common"
to schema-core application.properties file
account.id.common.project = common
Rational
Hardcoded account id won't allow us to run Schema service without "common" account.
Consequences
Use a spring annotation "@value" where account id is required instead of SchemaConstants.ACCOUNT_ID_COMMON_PROJECT.
Providers should change SchemaConstants.ACCOUNT_ID_COMMON_PROJECT to new value from properties file where they need to use it.