Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add placholder support and survey reports #8016

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

mandy-chessell
Copy link
Contributor

Description

This PR allows placeholder labels to be added to OMAG server configuration documents. For example:

eventBusConfig": 
        {
            "class": "EventBusConfig",
            "topicURLRoot": "egeria.omag",
            "configurationProperties":
             {
                "producer": {"bootstrap.servers": "{{kafkaep}}"},
                "consumer": {"bootstrap.servers": "{{kafkaep}}"}
             }
        }

The placeholder values are supplied in application.properties.

platform.placeholder.variables=\
  {\
    "kafkaep" : "localhost:9092"\
  }

The placeholder labels are replaced with the placholder values at server startup.

There is also an improved survey report.

Related Issue(s)

None

Testing

The sample configuration active-metadata-store uses the {{kafkaep}} placeholder variable.
A default is set up with the value localhost:9092 in applicaiton.properties

Release Notes & Documentation

This is a new function for the admin guide - updates in progress.

Additional notes

None

@mandy-chessell mandy-chessell merged commit f77c621 into odpi:main Jan 30, 2024
4 checks passed

/*
* Create an entry in the governance engine map for each configured engine.
*/
governanceEngineMap.setGovernanceEngineProperties(discoveryEngines,
governanceEngineMap.setGovernanceEngineProperties(engineServiceConfig.getEngines(),

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
EngineServiceConfig.getEngines
should be avoided because it has been deprecated.

/*
* Create an entry in the governance engine map for each configured engine.
*/
governanceEngineMap.setGovernanceEngineProperties(governanceActionEngines,
governanceEngineMap.setGovernanceEngineProperties(engineServiceConfig.getEngines(),

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
EngineServiceConfig.getEngines
should be avoided because it has been deprecated.

/*
* Create an entry in the governance engine map for each configured engine.
*/
governanceEngineMap.setGovernanceEngineProperties(engineConfigs,
governanceEngineMap.setGovernanceEngineProperties(engineServiceConfig.getEngines(),

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
EngineServiceConfig.getEngines
should be avoided because it has been deprecated.

/*
* Create an entry in the governance engine map for each configured engine.
*/
governanceEngineMap.setGovernanceEngineProperties(surveyActionEngines,
governanceEngineMap.setGovernanceEngineProperties(engineServiceConfig.getEngines(),

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
EngineServiceConfig.getEngines
should be avoided because it has been deprecated.
Date effectiveTime) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
public void deleteRelatedElementsInStore(String relationshipGUID) throws InvalidParameterException,

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
OpenMetadataStore.deleteRelatedElementsInStore
; it is advisable to add an Override annotation.
Date effectiveTime) throws InvalidParameterException,
UserNotAuthorizedException,
PropertyServerException
public void deleteMetadataElementInStore(String metadataElementGUID) throws InvalidParameterException,

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
OpenMetadataStore.deleteMetadataElementInStore
; it is advisable to add an Override annotation.
{
RelatedElement relatedElement = new RelatedElement();

relatedElement.setRelationshipHeader(this.getMetadataElementHeader(beanClass, relationship, relationship.getRelationshipGUID(), null, methodName));

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
relationship
may be null at this access as suggested by
this
null guard.
{
RelatedElement relatedElement = new RelatedElement();

relatedElement.setRelationshipHeader(this.getMetadataElementHeader(beanClass, relatedMetadataElement, relatedMetadataElement.getRelationshipGUID(), null, methodName));

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
relatedMetadataElement
may be null at this access as suggested by
this
null guard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant