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

API Stop using deprecated API #377

Merged

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Nov 2, 2022

};
}

private static function getVersionsList(DataObject $object)
Copy link
Member Author

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

@@ -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
Copy link
Member Author

@emteknetnz emteknetnz Nov 6, 2022

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

@@ -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'
Copy link
Member Author

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.

@emteknetnz emteknetnz force-pushed the pulls/1/stop-depr branch 2 times, most recently from 29c571d to 75a2896 Compare November 8, 2022 23:17
@emteknetnz emteknetnz marked this pull request as ready for review November 9, 2022 01:26
@sabina-talipova sabina-talipova merged commit 4baa7b4 into silverstripe:1 Nov 14, 2022
@sabina-talipova sabina-talipova deleted the pulls/1/stop-depr branch November 14, 2022 03:56
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.

2 participants