Skip to content

Conversation

@aszenz
Copy link
Contributor

@aszenz aszenz commented Dec 25, 2025

Fixes #2010

Relates to symfony/ai#1251

@aszenz
Copy link
Contributor Author

aszenz commented Dec 25, 2025

I get these errors when adding some operations:

GetVectors/ListVectors/PutVectors/QueryVectors -> Union shapes are not supported yet by the code generator. The shape "VectorData" is a union shape.

UntagResource -> ListShape in request part "querystring" is not yet implemented

@jderusse
Copy link
Member

Thanks for this addition, I have few comments

UntagResource -> ListShape in request part "querystring" is not yet implemented

This should be fixed by #2018

Union shapes are not supported yet

Yes, we need to fix that. #1900
In the meantime, you can patch the manifest like @stof did in https://github.com/async-aws/aws/pull/2012/changes.

manifest.json Outdated
Comment on lines 601 to 614
"CreateIndex",
"CreateVectorBucket",
"DeleteIndex",
"DeleteVectorBucket",
"DeleteVectorBucketPolicy",
"DeleteVectors",
"GetIndex",
"GetVectorBucket",
"GetVectorBucketPolicy",
"ListIndexes",
"ListTagsForResource",
"ListVectorBuckets",
"PutVectorBucketPolicy",
"TagResource"
Copy link
Member

Choose a reason for hiding this comment

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

Do you need all these operations?

The philosophy of this project is to add only what is asked/needed by people, not to add everything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed some of them related to tagging/policies, for the store implementation i would need create bucket/index functionality

@aszenz aszenz force-pushed the feat/s3-vectors-support branch 2 times, most recently from b394114 to ea30832 Compare December 29, 2025 21:38
@aszenz aszenz requested a review from jderusse December 29, 2025 21:44
@aszenz
Copy link
Contributor Author

aszenz commented Dec 29, 2025

Related to tests:

@aszenz
Copy link
Contributor Author

aszenz commented Dec 29, 2025

Also had to ignore return.unusedType rule in phpstan

name: S3Vectors
package: async-aws/s3-vectors
---

Copy link
Member

Choose a reason for hiding this comment

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

Please write the content of the documentation page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done


ignoreErrors:
- identifier: missingType.iterableValue
- identifier: return.unusedType
Copy link
Member

Choose a reason for hiding this comment

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

what was reported without this ignore rule ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

>  ------ ------------------------------------------------------------------------------------------------------------------------------ 
  Line   Service/S3Vectors/src/Input/QueryVectorsInput.php                                                                             
 ------ ------------------------------------------------------------------------------------------------------------------------------ 
  124    Method AsyncAws\S3Vectors\Input\QueryVectorsInput::getFilter() never returns null so it can be removed from the return type.  
         🪪  return.unusedType                                                                                                         
 ------ ------------------------------------------------------------------------------------------------------------------------------

So the method never returns null since it uses ?? [], but it's still in the return type.

This pkg doesn't seem to allow changing generated code, so i suppressed it.

Copy link
Member

Choose a reason for hiding this comment

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

This looks like a case where we need to improve the code generator instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks like a case where we need to improve the code generator instead.

should the code generator skip the null type or not do any null coalescing ?

Copy link
Member

Choose a reason for hiding this comment

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

the getter should not have the ?? []. I guess our code generator has an issue for document shapes (which are quite new, and are not yet used in any merged clients). The @var annotation on the property is also suspicious, with duplicate null types.

Copy link
Member

Choose a reason for hiding this comment

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

this should all be fixed by #2021

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, i rebased on your branch, seems to have fixed it

Copy link
Member

Choose a reason for hiding this comment

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

Please rebase again on latest master as my PR is now merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

aszenz added 2 commits January 2, 2026 16:36
CRUD operations for creating s3 vector buckets, indexes and vectors + query.
@aszenz aszenz force-pushed the feat/s3-vectors-support branch from bf2b90f to 3823694 Compare January 2, 2026 15:37
@stof stof reopened this Jan 3, 2026
@jderusse jderusse merged commit 8f5a5ad into async-aws:master Jan 5, 2026
24 checks passed
@jderusse
Copy link
Member

jderusse commented Jan 5, 2026

Thank you @aszenz and @stof

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.

Support S3 Vectors Bucket API

3 participants