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

Property Order is not working in Composite Environment Repositories #2438

Open
srikanth716 opened this issue Jul 9, 2024 · 5 comments
Open

Comments

@srikanth716
Copy link

srikanth716 commented Jul 9, 2024

order property to specify the priority order for all repositories. The lower the numerical value of the order property, the higher priority it has. The priority order of a repository helps resolve any potential conflicts between repositories that contain values for the same properties. But when I tried to implement the order the priority is not changing.

Document

GitHub Link

Current response: Data Response: eng,ara,fra

Expected response: Data Response: eng,ara,fra,khm

//application.yml 

server:
  port: 8888

spring:
  application:
    name: config-server

  profiles:
    active: composite

  cloud:
    config:
      server:
        composite:
          - type: git
            uri: https://github.com/mosip/mosip-config 
            clone-on-start: true
            # Add the branch if not using main
            default-label: develop
            searchPaths: /
            order: 2
          - type: git
            uri: https://github.com/srikanth716/inji-config
            clone-on-start: true
            default-label: develop
            searchPaths: /
            order: 1
management:
  endpoints:
    web:
      exposure:
        include: "*"

logging:
  level:
    org.springframework.cloud: DEBUG
@ryanjbaxter
Copy link
Contributor

Can you try with Spring Cloud 2023.0.3 and see if it makes a differene?

@srikanth716
Copy link
Author

@ryanjbaxter Still the same.

@ryanjbaxter
Copy link
Contributor

OK can you provide the response just from the config server by making a request to /mimoto/default/develop?

@spring-cloud-issues
Copy link

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@srikanth716
Copy link
Author

srikanth716 commented Jul 30, 2024

image

Response

config-server-response.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants