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

[ISSUE #137] Add an API for the dashboard to read the runtime configurationConfig #138

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

zzxxiansheng
Copy link
Contributor

@zzxxiansheng zzxxiansheng commented Apr 29, 2024

Fixes #137

Motivation

Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.

Modifications

Describe the modifications you've done.

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
  • If a feature is not applicable for documentation, explain why?
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

“zzxxiansheng added 3 commits April 29, 2024 16:53
# Conflicts:
#	eventmesh-dashboard-console/src/main/resources/eventmesh-dashboard.sql
@Pil0tXia Pil0tXia changed the title [ISSUES#137]Added an API for the dashboard to read the runtime configurationConfig [ISSUE #137] Add an API for the dashboard to read the runtime configurationConfig Apr 29, 2024
Comment on lines +43 to +48
RestTemplate restTemplate = new RestTemplate();
String forEntity =
restTemplate.getForObject("http://" + runtimeEntity.getHost() + ":" + runtimeEntity.getPort() + "/v2/configuration?format=properties", String.class, (Object) null);
JSONObject jsonMap = JSON.parseObject(forEntity);
Set<Entry<String, Object>> entries = jsonMap.entrySet();
ArrayList<ConfigEntity> configEntities = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RPC implements to EventMesh Runtime, Event Store and Meta should be put in the core module. The console module can call org.apache.eventmesh.dashboard.service.remoting.ConfigRemotingService.

This RemotingService interface needs to differentiate between methods based on the type of operation and the type of configuration, and abstract classes based on the target of the operation. I'll submit a PR for that.

@Pil0tXia
Copy link
Member

@zzxxiansheng Please note that #146 is merged~

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.

Added an API for the dashboard to read the runtime configuration
2 participants