Coder Social home page Coder Social logo

Comments (14)

veshu avatar veshu commented on August 21, 2024

@nkumar-topcoder, please sign-up with Topcoder X tool

This is an automated message for veshu via Topcoder X

from taas-apis.

veshu avatar veshu commented on August 21, 2024

@nkumar-topcoder, please sign-up with Topcoder X tool

This is an automated message for veshu via Topcoder X

from taas-apis.

veshu avatar veshu commented on August 21, 2024

@nkumar-topcoder, please sign-up with Topcoder X tool

This is an automated message for veshu via Topcoder X

from taas-apis.

veshu avatar veshu commented on August 21, 2024

@nkumar-topcoder, please sign-up with Topcoder X tool

This is an automated message for veshu via Topcoder X

from taas-apis.

veshu avatar veshu commented on August 21, 2024

Contest https://www.topcoder.com/challenges/30155268 has been created for this ticket.

This is an automated message for veshu via Topcoder X

from taas-apis.

veshu avatar veshu commented on August 21, 2024

Contest https://www.topcoder.com/challenges/30155268 has been updated - it has been assigned to aaron2017.

This is an automated message for veshu via Topcoder X

from taas-apis.

imcaizheng avatar imcaizheng commented on August 21, 2024

Fixed with PR #21

from taas-apis.

imcaizheng avatar imcaizheng commented on August 21, 2024

PR #25 updates swagger doc.

from taas-apis.

nkumar-topcoder avatar nkumar-topcoder commented on August 21, 2024

@imcaizheng

  1. I am posting as tc member for job candidates. Note that this member is already v5/users. Ideally Jobcandidate POSTING Should not be allowed for tc member. In this case - message should display as “ not allowed or authorised” But message “conflict” is coming.

  2. the log shows that, it’s POST v5/users, not sure why is it posting again ?
    a) My guess its trying to recreate a same user handle and getting conflict ?
    b) When creating JOB also it’s happening. This could be we validate for v5/skills and tc-member doesn’t have u-bann role ? (Note : we are discussing to enable v5/skills search for all members from u-bann side)

Can you please check.

Note : It’s happening for role tc member only, if booking manager role. Then it’s fine.
image

image

from taas-apis.

imcaizheng avatar imcaizheng commented on August 21, 2024

@nkumar-topcoder

  1. currently POST /jobCandidates can be accessed by all TC members as the source code suggests, see https://github.com/topcoder-platform/taas-apis/blob/feature/integration-test-fix/src/services/JobCandidateService.js#L56-L65

    We could apply access rules on the operation if you think it is needed.

  2. This could be we validate for v5/skills and tc-member doesn’t have u-bann role ? (Note : we are discussing to enable v5/skills search for all members from u-bann side)

    I don't think so. When we validate for v5/skills, we are using ubahn M2M token rather than the user token from the POST /jobs request, so there is no needs to enable v5/skills search for all members.

  3. I believe both conflict errors were caused by the getUserId function. Will look deep into that and get back to you later.

from taas-apis.

nkumar-topcoder avatar nkumar-topcoder commented on August 21, 2024

@imcaizheng

  1. you are right, any tc member can post for a job. Functionality wise this is right. no changes needed.
  2. agreed.
  3. ok fine, thank you.

from taas-apis.

imcaizheng avatar imcaizheng commented on August 21, 2024

@nkumar-topcoder

My guess its trying to recreate a same user handle and getting conflict ?

Your guess is right.
It is possible the handle stored in your token was already used to create an ubahn user and associated with an userId other than the userId stored in your token.
So when the getUserId function tried to use the userId stored in your token to find an existing ubahn user, it got no record. It then attempted to create new ubahn user with the handle stored in your token, unsurprisingly, ending up conflict error.

Currently the data on Topcoder Dev are not reliable and stable, IMO. To avoid the conflict error, I would
suggest create a new tc member account with different username so you won't be messed up with any existing data.

Edit
Alternatively, You could find the conflicting ubhan user and correct its associated v3 userId(the externalId property) with the one in your user token.

from taas-apis.

maxceem avatar maxceem commented on August 21, 2024

The fix for the issue in this ticket works good.
To track and discuss more the issue with conflict error during user ubahn creating I've created a separate issue #46

from taas-apis.

maxceem avatar maxceem commented on August 21, 2024

Payment task has been updated: https://software.topcoder.com/review/actions/ViewProjectDetails?pid=30155268

This is an automated message for maxceem via Topcoder X

from taas-apis.

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.