-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4663 from njkim/4658_node_label
add the choice to only show selected node in dropdown #4658
- Loading branch information
Showing
3 changed files
with
71 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
arches/app/models/migrations/4658_adds_nodevalue_type_widget_config.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.15 on 2019-023-05 14:40 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('models', '4352_format_config_number_widget'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunSQL( | ||
""" | ||
update widgets as w | ||
set defaultconfig = jsonb_set(defaultconfig, '{displayOnlySelectedNode}', to_jsonb(false), true) | ||
where w.name = 'node-value-select'; | ||
update cards_x_nodes_x_widgets as c | ||
set config = jsonb_set(config, '{displayOnlySelectedNode}', to_jsonb(false), true) | ||
where c.widgetid = 'f5d6b190-bbf0-4dc9-b991-1debab8cb4a9'; | ||
""", | ||
""" | ||
update widgets as w | ||
set defaultconfig = defaultconfig - 'displayOnlySelectedNode' | ||
where w.name = 'node-value-select'; | ||
update cards_x_nodes_x_widgets as c | ||
set config = config - 'displayOnlySelectedNode' | ||
where c.widgetid = 'f5d6b190-bbf0-4dc9-b991-1debab8cb4a9'; | ||
""") | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters