-
Notifications
You must be signed in to change notification settings - Fork 44.7k
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
fix(platform): avoid agent input value export, handling marketplace redirection, agent store fixes #9147
Conversation
✅ Deploy Preview for auto-gpt-docs-dev canceled.
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
✅ Deploy Preview for auto-gpt-docs canceled.
|
That slugifier message above is valid if we allow any other characters so I'd recommend taking a look at it |
We could also just generate the slugs we want and check if they already exist rather than requiring the user to pass them in |
The idea was around SEO, however I see no issue with just auto generating it from the agent name (store listing name). |
The AI hasn't understood the code correctly. The search query is sanitized by having all sql lang special characters escaped. Also the slug is sanitized prior to saving it, however we are missing a unique constraint on the slug. |
…ption Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ption Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…oGPT into hotfix-new-year
@@ -37,20 +41,24 @@ async def get_profile( | |||
return profile | |||
except Exception: | |||
logger.exception("Exception occurred whilst getting user profile") | |||
raise | |||
return fastapi.responses.JSONResponse( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually needed? There is already handle_internal_http_error
in rest_api.py
, are the v2 routes no longer using it?
@@ -71,15 +79,22 @@ async def update_or_create_profile( | |||
return updated_profile | |||
except Exception: | |||
logger.exception("Exception occurred whilst updating profile") | |||
raise | |||
return fastapi.responses.JSONResponse( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -0,0 +1,50 @@ | |||
BEGIN; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to have a comment here just like the other migration file
@@ -40,7 +40,8 @@ export default async function Page({ | |||
const agent = await api.getStoreAgent(creator_lower, params.slug); | |||
const otherAgents = await api.getStoreAgents({ creator: creator_lower }); | |||
const similarAgents = await api.getStoreAgents({ | |||
search_query: agent.categories[0], | |||
// We are using slug as we know its has been sanitized and is not null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: it has been, "and is not null" is inferred on the code too.
Maybe the comment is not needed?
@@ -34,8 +34,8 @@ export const AgentsSection: React.FC<AgentsSectionProps> = ({ | |||
}) => { | |||
const router = useRouter(); | |||
|
|||
// Take only the first 9 agents | |||
const displayedAgents = allAgents.slice(0, 9); | |||
// TODO: Update this when we have pagination |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add more clarity? Update this to what?
Changes 🏗️
Checklist 📋
For code changes:
Example test plan
For configuration changes:
.env.example
is updated or already compatible with my changesdocker-compose.yml
is updated or already compatible with my changesExamples of configuration changes