Skip to content
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(project): add new endpoint #824

Merged
merged 1 commit into from
May 24, 2024

Conversation

agong-coveo
Copy link
Contributor

@agong-coveo agong-coveo commented May 24, 2024

Added this new endpoint

  • This endpoint gets the associated project ID(s) per provided resource ID(s);
  • Takes the org ID, the resource type of the provided resourced ID(s) as params, and the resource IDs in the body.
image

Acceptance Criteria

  • My changes are publicly available, documented, and deployed in production. (i.e. on Swagger)
  • JSDoc annotates each property added in the exported interfaces
  • The proposed changes are covered by unit tests
  • Commits containing breaking changes a properly identified as such
  • README.md is adjusted to reflect the proposed changes (if relevant)
  • My merge commit message will be conventional (See Conventional Commit)

Copy link
Contributor

@FelixBlaisThon FelixBlaisThon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand, lets say Org A has few projects, if I have an ART model and I send my orgID and Model as a resource type (with ART model in the body), the call will return me all the projects that match that ?

@agong-coveo
Copy link
Contributor Author

If I understand, lets say Org A has few projects, if I have an ART model and I send my orgID and Model as a resource type (with ART model in the body), the call will return me all the projects that match that ?

Correct 👍 If you provide the orgId, ML_MODEL as the resource type and pass the ART model's ID in the body, it will return you a response containing the project IDs that are associated to it. The format will look like so:

[
  {
    "id": "provided-art-model-id",
    "projectIds": [
      "random-associated-project-to-art-model-id"
    ]
  }
]

@agong-coveo agong-coveo force-pushed the feat/TSP-352-project-multi-selector-edit branch from 772813e to 1582bc3 Compare May 24, 2024 20:15
@agong-coveo agong-coveo force-pushed the feat/TSP-352-project-multi-selector-edit branch from 1582bc3 to 973408d Compare May 24, 2024 20:15
@agong-coveo agong-coveo added this pull request to the merge queue May 24, 2024
Merged via the queue into master with commit b500e0d May 24, 2024
5 checks passed
@agong-coveo agong-coveo deleted the feat/TSP-352-project-multi-selector-edit branch May 24, 2024 20:20
Copy link

🎉 This PR is included in version 54.7.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants