Closed Arlodotexe closed 4 days ago
This is largely done. Next steps will be to fix up the UpdateEvents (aligning with the new API surface) so we can compile again.
Latest changes fbf3eca should allow builds to pass. We can continue with refactoring UpdateEvents in another PR.
@Arlodotexe you might want to delete the branch 😁
Fixes #3
Refactor models to align with the refined API spec.
Project Model Changes:
HeroImage
,CreatedAt
, andIcon
properties.ExtendedDescription
property.Images
,Features
,Dependencies
,Collaborators
,Links
, andConnections
.Publisher
,Name
,Description
,Category
, andCreatedAt
asrequired
.Cid
withDagCid
.Collaborators
to aDictionary<DagCid, Role>
type.[]
instead ofArray.Empty<T>
.Publisher Model Changes:
Owner
,ContactEmail
, andIcon
properties.Users + Roles
,Connections
,Links
,ExtendedDescription
, andForgetMe
properties.Links
,Projects
,Users
,ParentPublishers
, andChildPublishers
.Name
,Description
, andOwner
asrequired
.Cid
withDagCid
.[]
instead ofArray.Empty<T>
.User Model Changes:
MarkdownAboutMe
andIcon
properties.Projects + Roles
,Publisher + Roles
, andExtendedDescription
properties.MarkdownAboutMe
toExtendedDescription
.Connections
,Links
,Projects
, andPublishers
.Name
andExtendedDescription
asrequired
.Cid
withDagCid
.[]
instead ofArray.Empty<T>
.Update Events Changes:
IsPrivate
toIsUnlisted
inProjectUpdateEvent
andPublisherUpdateEvent
.ProjectUpdateEvent
.Link Model Changes:
Cid
withDagCid
.Role Model Changes:
Name
andDescription
asrequired
.IModifiableEntity Changes:
UpdateExtendedDescriptionAsync
method.ExtendedDescriptionUpdated
event.IReadOnlyEntity Changes:
ExtendedDescription
property.ExtendedDescriptionUpdated
event.For more details, open the Copilot Workspace session.