Skip to content

Conversation

johanneswilm
Copy link
Contributor

This is a combined PR of #30 #93 and #182. See discussion in #30 for details.

kolanos and others added 30 commits June 14, 2016 10:21
Concerned about the bad form of reading `_state` from outside the object
Least sure about this change - not sure why this became needed, which worries me.
Without it, depth was None causing a failed DB NOT NULL constraint failure
strings are more widely correct as ints will be represented correctly,
and it will allow using the `__str__` of any custom type used in the
model id field
@johanneswilm
Copy link
Contributor Author

johanneswilm commented Jan 15, 2021

Hey,
to all the involved: This is a combined PR of #30 #93 and #182 (plus some very basic linting) to allow alternative PKs in django-treebeard. See discussion in #30 for details.

It includes all the tests of all three PRs. The Appveyor tests are passing, while the Travis tests are not being executed, likely because I don't have write access to this repository. I suggest this PR should be merged, thereby replacing the previous PRs, and a new release be prepared ASAP.

Let me know if anyone needs something additional included in this PR. I am open to accepting patches. Alternatively, just add send in a PR to django-treebeard directly.

@tabo @jrief @solarissmoke @kolanos @rhunwicks @obayemi @JamesMaroney

@tabo
Copy link
Member

tabo commented Jan 15, 2021

Changes look good, but in the future it would be better to have PRs that are adhered to their description, because I see changes in testing infra, sphinx configuration, and a bump from sql server 2016 to 2019 (?!?).

@johanneswilm
Copy link
Contributor Author

@tabo Sure, the reason for that is that the tests included testing for Python 3.9 and Python 3.9 is only supported by the latest version of the appveyor image, which in turn no longer supports mssql 2016, etc. . So one thing led to another and the only way I could get the Python 3.9 tests to run was to also upgrade everything else.

I guess the main problem is just that there were several outdated things in there and this will not be a problem going forward as the package will get more frequent updates and releases.

@tabo
Copy link
Member

tabo commented Jan 16, 2021

I just installed sql server 2016 last night so I could run the tests 😂 Good work here! And I agree with @rhunwicks about the usage of 'id', so let's get the other PR moving forward too.

@tabo
Copy link
Member

tabo commented Jan 16, 2021

And to reiterate my point about changes to test infra, I understand the need for updating the test infrastructure and settings, but the main reason to do it separately is that things could be broken BEFORE this PR lands, and the extended tests could tell us that. Also, if the tests failed (which they didn't), by keeping the changes separate we could know for sure that failure didn't come from the testing environments.

@johanneswilm
Copy link
Contributor Author

johanneswilm commented Jan 16, 2021 via email

@tabo tabo merged commit 66ceeae into django-treebeard:master Jan 16, 2021
@tabo
Copy link
Member

tabo commented Jan 16, 2021

It's merged.

@johanneswilm johanneswilm deleted the alternative-pks branch January 21, 2021 14:17
@johanneswilm
Copy link
Contributor Author

Thanks @tabo ! We have tested and it is working for all our projects now. Any idea when we can see a release with this included?

@obayemi
Copy link
Contributor

obayemi commented Jan 28, 2021

Yes !!! thank you a lot @johanneswilm @tabo I didn't have much hope it would get merged on day... Sorry I was locked out of my giithub account for a few days so I didn't get the notification, but you made a very good job! I'll migrate the project where I use my fork to upstream in a few days 👍

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.

6 participants