Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S Schema
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Open Subsurface Data Universe SoftwareOpen Subsurface Data Universe Software
  • Platform
  • System
  • Schema
  • Merge requests
  • !103

Schema Notification

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Abhishek Kumar (SLB) requested to merge schema-notification-slb into master Apr 23, 2021
  • Overview 37
  • Commits 18
  • Pipelines 22
  • Changes 16

With schema notification changes there will be a notification triggered on the event-grid topic. There is a new contract introduced in the core module IMessageBus with the below signature:

public interface IMessageBus {
	void publishMessage(String schemaId, String eventType);
}

This is a breaking change for the rest of the vendors but to avoid any run time issues below stub is added which is expected to implemented by each vendor.

@Component
public class MessageBusImpl implements IMessageBus{

	@Inject
	private JaxRsDpsLog logger;

	@Override
	public void publishMessage(String schemaId, String eventType) {
		// TODO Auto-generated method stub
		logger.warning("publish message not implemented ye");

	}

}

Runtime variables:

By default, notification feature is turned off using the below parameter:

azure.eventGrid.enabled=${event_grid_enabled}

Value of this parameter can be found at: \schema-service\devops\azure\chart\templates\deployment.yaml

            - name: event_grid_enabled
              value: "false"
Edited May 12, 2021 by Abhishek Kumar (SLB)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: schema-notification-slb