Giter Club home page Giter Club logo

Comments (5)

sighphyre avatar sighphyre commented on September 22, 2024

Hey @ajdergute, I believe this is actually a bug on the Gitlab side. We by design don't allow slashes in environment names, so you'd need to sanitise those before creating the environments. Would you be able to raise this with the Gitlab team instead?

from unleash-client-java.

ajdergute avatar ajdergute commented on September 22, 2024

GitLab by design allows slashes (beside other characters) for it's environment names.
Refer to: https://docs.gitlab.com/ee/ci/environments/index.html#create-a-dynamic-environment
And: https://docs.gitlab.com/ee/ci/yaml/index.html#environmentname

Please mind, that the "gitlab environment" is mapped to "unleash appName". I'm not aware if this is a good idea.

Anyway, I'm not able to get some restrictions out of unleash documentation. The only information I found is:
https://docs.getunleash.io/reference/api/unleash/register-client-application

As per this documentation any string is allowed as appName. If it's on GitLab side it would be very helpful if I could point to some documentation. I'm able to raise this at GitLab, but I'm not convinced that it's really an issue with GitLab.

from unleash-client-java.

sighphyre avatar sighphyre commented on September 22, 2024

Ah right, fair enough, I think I've misunderstood your original question, apologies for that! Environment names wouldn't get mapped to app names in Unleash, so it's not practically a problem outside of Gitlab. That aside I can see how it'd be a pain to deal with. The config in this SDK should allow you to set your own backup file path, which is probably what I would suggest. Otherwise, it's open source so if you'd be open to submitting a PR, we'd be open to looking.

from unleash-client-java.

thomasheartman avatar thomasheartman commented on September 22, 2024

Hey, @ajdergute πŸ™‹πŸΌ We haven't heard from you in a bit now and I see @sighphyre suggested a potential workaround for the backup file path. Did that work out for you? ☺️

As @sighphyre also said, this seems to be an issue with how GitLab uses Unleash and not with this SDK itself, so I'm going to go ahead and close this issue for now. Feel free to re-open it if you think it's warranted, though.

from unleash-client-java.

ajdergute avatar ajdergute commented on September 22, 2024

Sorry for my late reply. The workaround from @sighphyre doesn't work for me. I created an PR and open for any discussion.

If desired, I'm able to change this PR to make the backupFilePath configurable.

from unleash-client-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.