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

Allows user to enforce unique or unique together constraints against tile values #4714

Merged
merged 14 commits into from
Mar 28, 2019

Conversation

chiatt
Copy link
Member

@chiatt chiatt commented Mar 22, 2019

Allows user to enforce unique or unique together constraints against tile values. re #4375.

name='ConstraintModel',
fields=[
('constraintid', models.UUIDField(default=uuid.uuid1, primary_key=True, serialize=False)),
('card', models.ForeignKey(db_column='cardid', on_delete=django.db.models.deletion.CASCADE, to='models.CardModel')),
Copy link
Contributor

Choose a reason for hiding this comment

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

E501 line too long (132 > 119 characters)

name='ConstraintXNode',
fields=[
('id', models.UUIDField(default=uuid.uuid1, primary_key=True, serialize=False)),
('constraint', models.ForeignKey(db_column='constraintid', on_delete=django.db.models.deletion.CASCADE, to='models.ConstraintModel')),
Copy link
Contributor

Choose a reason for hiding this comment

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

E501 line too long (150 > 119 characters)

fields=[
('id', models.UUIDField(default=uuid.uuid1, primary_key=True, serialize=False)),
('constraint', models.ForeignKey(db_column='constraintid', on_delete=django.db.models.deletion.CASCADE, to='models.ConstraintModel')),
('node', models.ForeignKey(db_column='nodeid', on_delete=django.db.models.deletion.CASCADE, to='models.Node')),
Copy link
Contributor

Choose a reason for hiding this comment

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

E501 line too long (127 > 119 characters)

};

this.uniqueToAllInstances.subscribe(function(val){
console.log(val);
Copy link
Contributor

Choose a reason for hiding this comment

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

Unexpected console statement. (no-console)


var updateConfigsWithUniqueNodes = function(val) {
self.configJSON({uniqueNodes: val});
console.log(self.configJSON);
Copy link
Contributor

Choose a reason for hiding this comment

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

Unexpected console statement. (no-console)

var updateConfigsWithUniqueNodes = function(val) {
self.configJSON({uniqueNodes: val});
console.log(self.configJSON);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing semicolon. (semi)

@coveralls
Copy link

coveralls commented Mar 22, 2019

Coverage Status

Coverage remained the same at 43.169% when pulling 8abcf12 on 4375_unique_tiles into e68ab02 on master.

this.updateConstraints = function(){
var self = this;
return function(){
console.log(self.constraints());
Copy link
Contributor

Choose a reason for hiding this comment

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

Unexpected console statement. (no-console)

@@ -327,6 +366,7 @@ define([
},

save: function(callback) {
console.log(this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Unexpected console statement. (no-console)

@chiatt chiatt merged commit 5aa8fdb into master Mar 28, 2019
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.

3 participants