-
Notifications
You must be signed in to change notification settings - Fork 34
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
API Stop using deprecated API #377
API Stop using deprecated API #377
Conversation
7e665d7
to
8c9ac57
Compare
}; | ||
} | ||
|
||
private static function getVersionsList(DataObject $object) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was copied from the deprecated Versioned::VersionsList()
This was the only non unit-test that called that method, so I kept it deprecated and just copied it to here as a private
8c9ac57
to
168698e
Compare
@@ -12,7 +12,6 @@ | |||
* Decorates TestSession object to update get / post requests with versioned querystring arguments. | |||
* Session vars assigned by FunctionalTest::useDraftSite are respected here. | |||
* | |||
* @deprecated 2.2.0 Use ?stage=Stage|Live in your request's querystring instead |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've raised an issue to look at re-deprecating this separately from the rest of this issue - I don't want to leave this deprecated at this stage because I expect it to create too much noise
src/Versioned.php
Outdated
@@ -2074,22 +2074,22 @@ public function stagesDiffer() | |||
* @param string $join Deprecated, use leftJoin($table, $joinClause) instead | |||
* @param string $having | |||
* @return ArrayList | |||
* @deprecated 1.12.0 Use allVersions() instead' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecating this and undeprecating allVersions() because all this method does is all allVersions(). I have no idea why they were deprecated the other way around before.
29c571d
to
75a2896
Compare
75a2896
to
5ce310f
Compare
Issue silverstripe/silverstripe-framework#10542