-
Notifications
You must be signed in to change notification settings - Fork 83
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
Complete object graph and unique'ify all objects #108
Conversation
Modify `Modellable` protocols to resolve relationships in seperate method
dc58f1e
to
6819c08
Compare
15e6d5d
to
1c79dfc
Compare
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.
Some typos, else looks good.
Sources/Client+Modellable.swift
Outdated
Fetch a collection of Entries from Contentful matching the specified query. | ||
|
||
- Parameter query: The Query object to match results againts. | ||
- Returns: An Observable forr the resulting `MappedContent` container. |
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.
forr
vs for
Sources/Client+Modellable.swift
Outdated
|
||
/** | ||
Fetches all entries and includes matching the passed in `Query`. The completion handler returned will return a `MappedContent` object which | ||
contains an array of `Asset`s and a dictionary of ContentTypeId's to arrays of `EntryModellable` types of your own defining. |
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.
defining
vs definition
.
Sources/ContentModellable.swift
Outdated
/** | ||
Initializes a new `ContentModel` instance. | ||
|
||
- Parameter entryTypes: References to the the types of your own defition, conforming to `EntryModellable`, which |
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.
defition
vs definition
// A type used to cache relationships that should be deleted in the `resolveRelationships()` method. | ||
fileprivate struct DeletedRelationship {} | ||
|
||
// Returns a dictionary representing the fields names and the target id(s) to create links to. |
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.
fields names
or should it be field names
?
Sources/DataCache.swift
Outdated
} | ||
|
||
public static func cacheKey(for resource: LocalizableResource) -> String { | ||
let delimeter = "_" |
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.
hmm, I am seeing double here. Do you mind using the let constant
of the DataCache
here?
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.
good cache! 😜
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.
💪🍎👍
Fixes #107