Skip to content
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

Merged
merged 6 commits into from
Aug 9, 2017

Conversation

loudmouth
Copy link
Contributor

Fixes #107

JP Wright added 2 commits August 8, 2017 13:19
Modify `Modellable` protocols to resolve relationships in seperate
method
Copy link
Contributor

@mariobodemann mariobodemann left a 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.

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

forr vs for


/**
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.
Copy link
Contributor

Choose a reason for hiding this comment

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

defining vs definition.

/**
Initializes a new `ContentModel` instance.

- Parameter entryTypes: References to the the types of your own defition, conforming to `EntryModellable`, which
Copy link
Contributor

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.
Copy link
Contributor

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?

}

public static func cacheKey(for resource: LocalizableResource) -> String {
let delimeter = "_"
Copy link
Contributor

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?

Copy link
Contributor Author

@loudmouth loudmouth Aug 9, 2017

Choose a reason for hiding this comment

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

good cache! 😜

Copy link
Contributor

@mariobodemann mariobodemann left a comment

Choose a reason for hiding this comment

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

💪🍎👍

@loudmouth loudmouth merged commit e4136ab into master Aug 9, 2017
@loudmouth loudmouth deleted the improvement/modellable branch August 9, 2017 13:35
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.

2 participants