Skip to content

Add product label validation#442

Merged
edgan8 merged 7 commits intomainfrom
edwardgan/productlabels
Feb 27, 2024
Merged

Add product label validation#442
edgan8 merged 7 commits intomainfrom
edwardgan/productlabels

Conversation

@edgan8
Copy link
Copy Markdown
Contributor

@edgan8 edgan8 commented Feb 21, 2024

Pull Request Summary

This generalizes the logic in llm engine to look for a plugin that can validate both team and product. The goal is to be able to support conventions where the set of products allowed depends on the team label, like the one here doc using a shared plugin between launch and train.

We keep the old code for just checking the team using a plugin around even though it will no longer be necessary so that llm-engine code is backwards compatible with deployments that are not yet using the new extended plugin.

Test Plan and Usage Guide

CI. Manual testing with internal code in https://github.com/scaleapi/models/pull/8924 .
Also note that this PR re-enables some API tests that attempt to create endpoints with invalid team labels.

[SC-812003]

@edgan8 edgan8 requested a review from song-william February 21, 2024 22:28
@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #812003: EGP "product" cost labels are standardized in Launch.

@edgan8 edgan8 force-pushed the edwardgan/productlabels branch 3 times, most recently from 92ee0fa to 0c6159f Compare February 22, 2024 01:32
@edgan8 edgan8 requested review from a team and song-william and removed request for song-william February 22, 2024 16:30
@edgan8 edgan8 force-pushed the edwardgan/productlabels branch from 0115934 to bdbf98e Compare February 22, 2024 17:12
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😄

@edgan8 edgan8 force-pushed the edwardgan/productlabels branch from 6d55041 to b1ab5ed Compare February 27, 2024 19:07
@edgan8 edgan8 merged commit 468bcbe into main Feb 27, 2024
@edgan8 edgan8 deleted the edwardgan/productlabels branch February 27, 2024 19:31
@yunfeng-scale yunfeng-scale mentioned this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants