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

Allow specifying datastore driver by config, relocate upgrade detection, mock datastore #165

Merged
merged 6 commits into from
May 20, 2016

Conversation

Quentin-M
Copy link
Contributor

No description provided.

if err != nil {
t.Error(err)
return
}
datastore := ds.(*pgSQL)
Copy link
Contributor

Choose a reason for hiding this comment

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

you should put this below the defer

// Generate a pagination key if none is provided.
// TODO(Quentin-M): Move to the API code.
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't make sense to move to the API as it is setting a default value for the config.

// If no Namespace is associated,
// - If the FeatureVersion is present in the parent layer, associate its Namespace,
// - If a Namespace has been detected in the layer, associate it,
// - Otherwise, throw an error.
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's rework this comment because it's really hard to understand.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's add a comment addressing the building of this map and then we'll add comments inside the next block to describe each of these cases.

// Build a map of the namespaces for each FeatureVersion in our parent layer.

@Quentin-M
Copy link
Contributor Author

PTAL 🎯

@jzelinskie jzelinskie added lacking/review needs to be reviewed by a maintainer component/database area/testing related to improving test coverage labels May 18, 2016
@jzelinskie
Copy link
Contributor

LGTM

@jzelinskie jzelinskie added reviewed/lgtm and removed lacking/review needs to be reviewed by a maintainer labels May 19, 2016
@Quentin-M Quentin-M merged commit a03459d into quay:master May 20, 2016
@Quentin-M Quentin-M deleted the db_registration branch May 20, 2016 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing related to improving test coverage
Development

Successfully merging this pull request may close these issues.

None yet

2 participants