Skip to content

[$120] Updating Phase table does not reflect in the challenge's phases #57

Closed
@nqviet

Description

@nqviet

Env:

export AUTH0_URL=https://topcoder-dev.auth0.com/oauth/token
export AUTH0_PROXY_SERVER_URL=https://topcoder-dev.auth0.com/oauth/token
export AUTH0_AUDIENCE=https://m2m.topcoder-dev.com/
export TOKEN_CACHE_TIME=90
export AUTH0_CLIENT_ID=jGIf2pd3f44B1jqvOai30BIKTZanYBfU
export AUTH0_CLIENT_SECRET=ldzqVaVEbqhwjM5KtZ79sG8djZpAVK8Z7qieVcC3vRjI4NirgcinKSBpPwk6mYYP

export VALID_ISSUERS=[\"https://topcoder-newauth.auth0.com/\",\"https://api.topcoder-dev.com/\",\"https://topcoder-dev.auth0.com/\"]
export JWT_TOKEN_SECRET=secret

Topics:

challenge.action.resource.create
challenge.action.resource.delete
challenge.action.resource.update
challenge.notification.create
challenge.notification.update
submission.notification.create
submission.notification.delete
submission.notification.update
test.new.bus.events

Steps to reproduce:

  • run Kafka locally, and add the above topics
  • deploy challenge-processor-es, tc-bus-api at port 3001, and 3002 locally with the above variables
  • run the app by: BUSAPI_URL=http://localhost:3002/v5 npm start
  • open the Postman collection
  • send a request to create ChallengeType, or ChallengeSetting, Phase, TimelineTemplate, ChallengeTypeTimelineTemplate if it is a first time
  • send a request create challenge by admin
  • send a request get challenge 1 by anonymous user, and see that its first phase name is: "phase-1"
  • send a request update challenge phase 1, now phase name is "new-phase-1"
  • send the request get challenge 1 by anonymous user, check that the challenge' phase name does not change

Current result(s):

  • the challenge's phase name is still "phase-1"
  • on the console of tc-bus-api, the phase updated event has been sent already
  • on the console of challenge-processor-es, this event is not consumed.

Expected result(s):

  • the challenge's phases data should be updated also

Attachments:
Untitled
Untitled2
Untitled3

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions