Skip to content

Commit

Permalink
Merge pull request #2381 from hongwei1/develop
Browse files Browse the repository at this point in the history
docfix/added the comments for Markdown format for webui_terms_and_con…
  • Loading branch information
simonredfern committed May 2, 2024
2 parents f375a1c + 959979f commit b0a87e7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions obp-api/src/main/resources/props/sample.props.template
Original file line number Diff line number Diff line change
Expand Up @@ -1139,6 +1139,8 @@ default_auth_context_update_request_key=CUSTOMER_NUMBER
# User (Developer) Invitation
webui_post_user_invitation_submit_button_value=Register as a Developer
webui_privacy_policy=

#Note: if you provide the Markdown format, please use '\n\' at the end. This will preserve the line breaks.
webui_terms_and_conditions=
webui_post_user_invitation_terms_and_conditions_checkbox_value=I agree to the above Developer Terms and Conditions

Expand Down
1 change: 1 addition & 0 deletions obp-api/src/main/scala/bootstrap/liftweb/Boot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,7 @@ class Boot extends MdcLoggable {
def schemifyAll() = {
Schemifier.schemify(true, Schemifier.infoF _, ToSchemify.models: _*)
if (APIUtil.getPropsAsBoolValue("remotedata.enable", false) == false) {
logger.debug("Run Schemifier.schemify during Boot:")
Schemifier.schemify(true, Schemifier.infoF _, ToSchemify.modelsRemotedata: _*)
}
}
Expand Down
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/code/api/util/APIUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,7 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
private val operationIdToResourceDoc: ConcurrentHashMap[String, ResourceDoc] = new ConcurrentHashMap[String, ResourceDoc]

def getResourceDocs(operationIds: List[String]): List[ResourceDoc] = {
logger.debug(s"ResourceDoc operationIdToResourceDoc.size is ${operationIdToResourceDoc.size()}")
logger.trace(s"ResourceDoc operationIdToResourceDoc.size is ${operationIdToResourceDoc.size()}")
val dynamicDocs = DynamicEntityHelper.doc ++ DynamicEndpointHelper.doc ++ DynamicEndpoints.dynamicResourceDocs
operationIds.collect {
case operationId if operationIdToResourceDoc.containsKey(operationId) =>
Expand Down
4 changes: 2 additions & 2 deletions obp-api/src/main/scala/code/api/util/ApiRole.scala
Original file line number Diff line number Diff line change
Expand Up @@ -987,11 +987,11 @@ object ApiRole extends MdcLoggable{
}

def getOrCreateDynamicApiRole(roleName: String, requiresBankId: Boolean = false): ApiRole = {
logger.debug(s"code.api.util.ApiRole.getOrCreateDynamicApiRole.size is ${dynamicApiRoles.size()}")
logger.trace(s"code.api.util.ApiRole.getOrCreateDynamicApiRole.size is ${dynamicApiRoles.size()}")
dynamicApiRoles.computeIfAbsent(roleName, _ => DynamicApiRole(roleName, requiresBankId))
}
def removeDynamicApiRole(roleName: String): ApiRole = {
logger.debug(s"code.api.util.ApiRole.removeDynamicApiRole.size is ${dynamicApiRoles.size()}")
logger.trace(s"code.api.util.ApiRole.removeDynamicApiRole.size is ${dynamicApiRoles.size()}")
dynamicApiRoles.remove(roleName)
}

Expand Down
2 changes: 1 addition & 1 deletion obp-api/src/main/scala/code/api/util/DynamicUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object DynamicUtil extends MdcLoggable{
* @return compiled Full[function|object|class] or Failure
*/
def compileScalaCode[T](code: String): Box[T] = {
logger.debug(s"code.api.util.DynamicUtil.compileScalaCode.size is ${dynamicCompileResult.size()}")
logger.trace(s"code.api.util.DynamicUtil.compileScalaCode.size is ${dynamicCompileResult.size()}")
val compiledResult: Box[Any] = dynamicCompileResult.computeIfAbsent(code, _ => {
val tree = try {
toolBox.parse(code)
Expand Down
1 change: 1 addition & 0 deletions obp-api/src/main/scala/code/views/MapperViews.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import scala.concurrent.Future

object MapperViews extends Views with MdcLoggable {

logger.debug("Run Schemifier.schemify in MapperViews object")
Schemifier.schemify(true, Schemifier.infoF _, ToSchemify.modelsRemotedata: _*)

private def getViewsForUser(user: User): List[View] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ trait V310ServerSetup extends ServerSetupWithTestData with DefaultUsers {
}
val banksJson = getBanksInfo.body.extract[BanksJSON]

logger.debug(s"banksJson.banks.size is ${banksJson.banks.size}")
logger.trace(s"banksJson.banks.size is ${banksJson.banks.size}")
val randomPosition = nextInt(banksJson.banks.size)
val bank = banksJson.banks(randomPosition)
bank.id
Expand Down

0 comments on commit b0a87e7

Please sign in to comment.