-
Notifications
You must be signed in to change notification settings - Fork 56
keep some deprecated Methods #643
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
Conversation
Signed-off-by: dartcafe <[email protected]>
e7f0fe7 to
fa711df
Compare
Signed-off-by: dartcafe <[email protected]>
|
I see no problem to re-implement the deprecated |
Short story: You're right, it is nonsense. |
This reverts commit fa711df. Signed-off-by: dartcafe <[email protected]>
Signed-off-by: dartcafe <[email protected]>
|
I added some mappings from the new types to the deprecated in Member::getType(). It seems that the compatibilty can be secured this way. At least I tested it successful and I can resolve the circles into their members. |
|
Not a huge fan of:
|
This won't help, as I have to get polls compatible between NC21 (circles 0.21) and NC22 (Circles 22.0). And I am not able to release a NC22 and NC21 version. Otherwise we would have to remove the Circles support until the API is stable over more than one version. With the deprecated function getType() with returning types compatible to the old keys, the meaning is still consistent if the constants are used. |
|
If you do not store the value in your database, you can already have the correct correspondence using If you store the value, I can add a getDeprecatedtype() in both version. What do you think ? |
But not when using If we would store the numeric value of the circle member type (which we don't), the problem would be much bigger, because all stored mail members would become a contact member, without notification and a migration based on the installed Circles version would be neccessary. I got aware of the changes in Circles just by fortune, because a test broke, and I noticed the new implementation in NC22. To understand my problem: Circles 0.21
In Circles 22
If we leave the deprecated Member::getType() and return also the deprecated values, the API can be used consitently. Or you could get rid of the deprecated types and make sure, that OCA\Circles\Api\v1::TYPE_* is identically to OCA\Circles\Model\Member::TYPE_*. I am not sure, which apps (not maintained by Nextcloud) integrate circles. But there is a risk, that the devolpers of these apps will get surprised by the changes, too. Also this change should be added to the critical changes info in the nextcloud repo. If it helps to understand, here is the affected code of polls:
Since AFAIK we cannot define dependencies to other apps, this won't help. |
|
tell me if #648 helps you |
fix #642
added
Member::getType()as well