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

Feature/duplicate board query #61

Open
wants to merge 50 commits into
base: master
Choose a base branch
from

Conversation

albcl
Copy link
Contributor

@albcl albcl commented Jun 20, 2022

What changed:

Added duplicate_board() function and a test for it.
A types.py file has been included where type hints can be set up. In this case it stores the required duplication types (duplicate_board_with_structure / duplicate_board_with_pulses / duplicate_board_with_pulses_and_updates)
Also, Readme has been updated.

What resolves

Issue #46 - Will allow users to duplicate boards easily.

@rhymiz rhymiz requested a review from chdastolfo June 28, 2022 20:17
@rhymiz
Copy link
Collaborator

rhymiz commented Jun 28, 2022

Hi @albcl, thanks for your contribution!

We'll have this reviewed ASAP!

cc: @chdastolfo

monday/query_joins.py Outdated Show resolved Hide resolved
@albcl
Copy link
Contributor Author

albcl commented Jun 29, 2022

I have also added some extra optional parameters for the query

Copy link
Collaborator

@chdastolfo chdastolfo left a comment

Choose a reason for hiding this comment

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

@albcl Could you please update the README with details about each of these optional parameters? To be honest, I haven't used monday.com in a while 🤣 - I'm not clear on when you would use something like folder_id or keep_subscribers so some extra context there would be helpful.

@rhymiz
Copy link
Collaborator

rhymiz commented Sep 2, 2022

Hey @albcl, following up here. I'd love to get this merged for you once you've addressed the comments.

@albcl
Copy link
Contributor Author

albcl commented Oct 18, 2022

Hi everyone. Sorry about the delay but it has been a rather busy and hectic last few months.
I have updated the readme accordingly (good call on that one!) and also query_joins

@rhymiz
Copy link
Collaborator

rhymiz commented Oct 23, 2022

Hey @albcl, looks like the build is failing due to failing tests.

@rhymiz rhymiz added the enhancement New feature or request label Dec 2, 2022
@rhymiz rhymiz linked an issue Dec 2, 2022 that may be closed by this pull request
tonymorello and others added 9 commits December 9, 2022 12:38
* Added move item to group and archive item

* Added tests for move item to group and archive item

* Updated README.md

* Update package version
* Added "create board by workspace id"

* Update readme

* Added missing type hints

* Updated test

* More custom type hints

* Type hints for 'get_boards_query'

* Fixed tests

* Updated Readme and 'fetch_boards' method
* docs: update README.md [skip ci]

* docs: create .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
chdastolfo and others added 7 commits December 9, 2022 12:59
* Add in limits and pages to items query

* Add in unit test

* Add in no params test

* Update surface level api

* Split up test

* Split out gather func

* Update README

* CORRECTLY update README

* bump version number

Co-authored-by: Taylor Cochran <[email protected]>
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
@albcl
Copy link
Contributor Author

albcl commented Dec 9, 2022

With a little of a delay... but fixed! It was a matter of merging and updating some changes that were committed by #60 but missing here.

if workspace_id:
params += """, workspace_id: %s"""

query = """
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like it should be indented once more.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean to move it under the workspace_id condition? That condition is meant to only add to the params variable the workspace_id parameter for the query but it's not a mandatory condition for the query.

However, there is a clear issue there because there isn't a value passed for the %s token, and the test didn't catch it because it was expecting to find a 1 and a 2 within the query, but both are included in the board_id value (Its value is 12) That was a really bad test.

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...

Copy link
Collaborator

Choose a reason for hiding this comment

The 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.

@rhymiz rhymiz requested a review from chdastolfo January 6, 2023 16:19
chdastolfo
chdastolfo previously approved these changes Jan 10, 2023
Copy link
Collaborator

@chdastolfo chdastolfo left a comment

Choose a reason for hiding this comment

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

Approved pending the resolution of the merge conflict.

@albcl We've migrated our docs over to Read the Docs - you can find README.rst in the docs/ directory if you pull down the latest - could you move the README additions to that file? This should be good to go after that.

@rhymiz
Copy link
Collaborator

rhymiz commented May 18, 2023

Friendly ping @albcl

@albcl
Copy link
Contributor Author

albcl commented Sep 15, 2023

@rhymiz @chdastolfo with a massive delay, here is the updated PR once again. Apologies for leaving the PR hanging for a year 🤦 Many things have happened since then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicating boards
5 participants