-
Notifications
You must be signed in to change notification settings - Fork 1.4k
implement package-collections business logic #3028
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
Conversation
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.
Looks great. Minor comments.
Sources/PackageCollections/Storage/PackageCollectionsProfileStorage.swift
Outdated
Show resolved
Hide resolved
This implements the proposed CLI for package-collections. Requires swiftlang#3028
@swift-ci please smoke test |
347f658
to
0076c14
Compare
@swift-ci please smoke test |
hmm test failures are because of API changes in TSC: swiftlang/swift-tools-support-core#152 |
@swift-ci please smoke test |
@yim-lee @abertelrud @neonichu this should be ready for final review / merge |
|
||
extension PackageCollectionsModel.CollectionSourceType: Codable { |
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 the whole purpose of this just to be able to throw UnknownType
error?
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.
@yim-lee are you asking about the purpose of CollectionSourceType
? If so, it for us to be able to support multiple type of providers. e.g. feed, index, etc
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 use synthesized conformance and remove this extension block?
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.
ah, I dont believe enums synthesize conformance. am I missing anything?
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.
It could if CollectionSourceType: String, Codable
but not sure we want to add : String
though.
@swift-ci please smoke test |
motivation: continue the implmentation of package-collections changes: * implemented PackageCollectionsProtocol which is the main business logic of the feature * added basic configuration model for the feature * added basic validation rules for collection source * simplfied model names to be shorter * added relevants tests Co-authored-by: Boris Bügling <[email protected]> Co-authored-by: Yim Lee <[email protected]>
808d351
to
c7fc365
Compare
@swift-ci please smoke test |
This implements the proposed CLI for package-collections. Requires swiftlang#3028
This implements the proposed CLI for package-collections. Requires swiftlang#3028
This implements the proposed CLI for package-collections. Requires swiftlang#3028
* Add a new `swift-package-collections` CLI This implements the proposed CLI for package-collections. Requires #3028 * address feedback * address feedback and adopt to latest API * more feedback * Update with proposal changes * Fix output indentation and rename CLI tool * Fix JSON output and adopt `.makeWithDefaults()`
motivation: continue the implmentation of package-collections changes: * implemented PackageCollectionsProtocol which is the main business logic of the feature * added basic configuration model for the feature * added basic validation rules for collection source * simplfied model names to be shorter * added relevants tests Co-authored-by: Boris Bügling <[email protected]> Co-authored-by: Yim Lee <[email protected]>
* Add a new `swift-package-collections` CLI This implements the proposed CLI for package-collections. Requires swiftlang#3028 * address feedback * address feedback and adopt to latest API * more feedback * Update with proposal changes * Fix output indentation and rename CLI tool * Fix JSON output and adopt `.makeWithDefaults()`
motivation: continue the implmentation of package-collections
changes: