-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Result model: Loudly deprecate not needed attributes and remove already deprecated ones #4846
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
Comments
`datatypes` has already been deprecated in favor of `typedocs` This commit removes the generation of `datatypes` and fixes/removes associated tests. The schema files have been updated earlier. Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
.keywords and .children have been deprecated since RF 4.0 .critical has also been deprecated a long time Part of #4846
The following attributes were removed from the result model. They all had been deprecated since RF 4.0.
|
Control structures were earlier masked to look like keywords. Nowadays they are considered totally different and their attributes |
- Enhance the deprecation warning. - Deprecate also `doc`. - Enhance tests. Missing part of #4846.
The result model (
robot.result.TestSuite
) got separate objects for representing control structures (For
,If
, ...) only in RF 4.0 (#3749). Before that control structures were modeled as keywords with atype
attribute telling what they actually represent. For backwards compatibility the new objects got keywords specific attributes likename
. These attributes were deprecated from the beginning and it's not finally time to remove them.This change will require changing our log file generation code, because it handles control structures as keywords, but that's not too big a problem. The change obviously affects all external tools handling control structures as keywords as well making the change backwards incompatible. We couldn't do it in a bug fix or even in a feature release, but doing it in a major release ought to be fine.
UPDATE: It turned out that we hadn't properly deprecated all the attributes. Some only used our custom
@deprecated
decorator, but the decorator didn't do anything. Instead of removing these attributes, we decided to change the decorator so that now there's an actual deprecation warning. Those attributes that already emitted deprecation warnings were removed.The text was updated successfully, but these errors were encountered: