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

Namespace property and secondary index #178

Merged
merged 4 commits into from Feb 14, 2015
Merged

Namespace property and secondary index #178

merged 4 commits into from Feb 14, 2015

Conversation

d00rman
Copy link
Contributor

@d00rman d00rman commented Feb 14, 2015

This PR adds the namespace property and its secondary index (which is not used ATM).

Until now, if getRevision() is called and the revision info is in
storage, only secondary-index projected fields would be retrieved (in
this case restrictions), which was inconsistent with data obtained
through getTitleRevision(). This commit issues a second call to fetch
the complete information with getTitleRevision().
Now that _checkRevReturn() is always called synchronously, there is no
need to return a resolved promise. Instead, a simple 'true' value works
since otherwise an error is thrown.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.18%) to 87.39% when pulling 136738f on T87392-namespace into c0d7568 on master.

.then(function(res) {
// check the return
self._checkRevReturn(res);
// and get the revision info for the
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@gwicke
Copy link
Member

gwicke commented Feb 14, 2015

Looks great!

gwicke added a commit that referenced this pull request Feb 14, 2015
Namespace property and secondary index
@gwicke gwicke merged commit aba0b13 into master Feb 14, 2015
@d00rman d00rman deleted the T87392-namespace branch February 14, 2015 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants