-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat: add feature flag to enable/disable support for Anoncred (backend job and API) #1491 #1492
Conversation
…d job) Signed-off-by: FabioPinheiro <fabiomgpinheiro@gmail.com>
Signed-off-by: FabioPinheiro <fabiomgpinheiro@gmail.com>
Signed-off-by: Fabio Pinheiro <fabiomgpinheiro@gmail.com>
...nt/service/server/src/main/scala/org/hyperledger/identus/agent/server/config/AppConfig.scala
Outdated
Show resolved
Hide resolved
.../core/src/main/scala/org/hyperledger/identus/pollux/core/model/error/PresentationError.scala
Outdated
Show resolved
Hide resolved
Good job, @FabioPinheiro What do you think about using the feature flags in the ZIO layer bootstrapping logic instead of in the business logic. |
I did exactly that discussion with @mineme0110 yesterday. We are slightly in favor of being in the ZIO environment. But to keep consistent, I decided to pass the flags as arguments (as it was already done in most places) |
So now the integration tests are failing as expected. How can we fix this?
|
can we not run integration test with flag enabled |
I agree with @mineme0110. |
So that is the "easier way". Although I have no idea how to configure the integration test |
Signed-off-by: FabioPinheiro <fabiomgpinheiro@gmail.com>
Signed-off-by: Allain Magyar <allain.magyar@iohk.io>
| - Support for the credential type JWT VC is ${if (flags.enableJWT) "ENABLED" else "DISABLED"} | ||
| - Support for the credential type SD JWT VC is ${if (flags.enableSDJWT) "ENABLED" else "DISABLED"} | ||
| - Support for the credential type Anoncred is ${if (flags.enableAnoncred) "ENABLED" else "DISABLED"} | ||
|""") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO I'm forgot to call the margin method...
Add a configuration feature flag to enable or disable support for certain type of credentials like Anomcred