-
Notifications
You must be signed in to change notification settings - Fork 57
Feature/duplicate board query #61
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
base: master
Are you sure you want to change the base?
Changes from 2 commits
e9c2d80
748f418
5480228
5dc386d
ed8e29d
873dda3
f9e3a6e
d707140
12b6834
f196586
89a5b8c
cdeaa30
050c32d
02820ea
0d41eb5
0a9b87d
1a30751
4340a28
cd885f8
1837e1d
ba4e159
af5fa68
bd9358d
ee25c90
6d5b19b
53faa21
2153140
4e2d9a0
85154c8
a528b00
fb9adc2
2b0689e
1d38403
93938a2
9cc8e82
17efb51
2335617
3b2c1f0
0b94fb1
d42b3ec
8f445d5
11ac7b5
5120dbc
5027df3
0d9cf2f
246bfc7
5226ae0
d32dd59
f5cf788
77c9ca3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import json | ||
| from monday.resources.types import DuplicateTypes | ||
|
|
||
| from monday.utils import monday_json_stringify | ||
|
|
||
|
|
@@ -356,6 +357,22 @@ def get_columns_by_board_query(board_ids): | |
| }''' % board_ids | ||
|
|
||
|
|
||
| def duplicate_board_query(board_id: int, duplicate_type: DuplicateTypes): | ||
| query = """ | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks like it should be indented once more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean to move it under the However, there is a clear issue there because there isn't a value passed for the I have updated both the query and its test to fix these issues. I wonder if it had something to do with the merge when the branch was like +20 commits behind...
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly, now that I look at it again I'm not sure what I was talking about, it looks fine... disregard. Good catch on test, and ty for fixing. |
||
| mutation { | ||
| duplicate_board(board_id: %s, duplicate_type: %s) { | ||
| board { | ||
| id | ||
| } | ||
| } | ||
| } | ||
| """ % ( | ||
| board_id, | ||
| duplicate_type.value, | ||
| ) | ||
| return query | ||
|
|
||
|
|
||
| # USER RESOURCE QUERIES | ||
| def get_users_query(**kwargs): | ||
| query = '''query | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from enum import Enum | ||
|
|
||
|
|
||
| class DuplicateTypes(Enum): | ||
| """Board duplication types""" | ||
|
|
||
| WITH_STRUCTURE = "duplicate_board_with_structure" | ||
| WITH_PULSES = "duplicate_board_with_pulses" | ||
| WITH_PULSES_AND_UPDATES = "duplicate_board_with_pulses_and_updates" |
Uh oh!
There was an error while loading. Please reload this page.