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

Remove Obsolete Attributes #2219

Closed
rprouse opened this issue Jun 4, 2017 · 13 comments
Closed

Remove Obsolete Attributes #2219

rprouse opened this issue Jun 4, 2017 · 13 comments

Comments

@rprouse
Copy link
Member

rprouse commented Jun 4, 2017

We obsoleted several attributes like FixtureSetup with the 3.0 release. It is probably about time we removed them.

Other candidates for removal are some of the fluent syntax for constraints where we came up with better naming.

@stevenaw
Copy link
Member

I can take this on.
Can I please be assigned to it?

@CharliePoole
Copy link
Contributor

Hi @stevenaw Sure thing. I sent you an invitation as a contributor. After you accept I'll be able to make assignments to you.

@stevenaw
Copy link
Member

Thanks @CharliePoole , I've accepted the invite 🙂

@Lette
Copy link
Contributor

Lette commented Jun 12, 2017

Just a thought:

If we're following SemVer, we have to consider that removing these attributes might be a breaking change, which will require a bump of the major version. So, this is probably something that shouldn't be done before the 4.0 release.

@CharliePoole
Copy link
Contributor

That's a point. Not sure how much into semver everyone is at this point though. @rprouse ?

@NN---
Copy link

NN--- commented Jun 26, 2017

Please do it in 4.0.
It will break my code and many other projects too.

@CharliePoole
Copy link
Contributor

@rprouse How do you want to handle this? Should we have a 4.0 Milestone?

@rprouse
Copy link
Member Author

rprouse commented Jun 27, 2017

If we follow SemVer to the letter, then we probably should hold off on this to a 4.0 release. I think you could argue though that since most of the attributes were obsoleted in 3.0 and there have been many releases to fix the warnings it isn't a breaking change.

AFAIK, the only obsolete feature that isn't a simple search and replace update is the AssertHelper. AssertHelper has only been obsolete for one release, so removing it may be pre-mature. Updating everything else should only take a few minutes, even for large solutions. @nn or @Lette is there anything other than AssertHelper that you see as a major or difficult change?

Personally, I am surprised that people haven't already updated their code, but maybe I just hate warnings more than other people 😄 I am also surprised that people continue to use AssertHelper since it is so limited compared to the other asserts.

@stevenaw
Copy link
Member

stevenaw commented Jun 27, 2017 via email

@NN---
Copy link

NN--- commented Jun 27, 2017

I have some obsolete attributes. Not really much work to find and replace.

The main difficulty was ExpectedException attribute removal in 3.0 which I can say was a very good idea.
Too bad it existed from the beginning..

@rprouse
Copy link
Member Author

rprouse commented Jun 27, 2017

@stevenaw if you want to do a PR, it might help us visualize what is changing and what the impact will be without searching through the code ourselves. If you do the PR, please put a do not merge in the description and you should probably hold off on doing more work until we make a final decision on this issue. @Lette and @NN--- have raised good points and I think we should evaluate the impact of this change.

@stevenaw
Copy link
Member

@rprouse @CharliePoole I've put up a sample PR here: #2338
It doesn't look like I'm able to update labels, so I've put a big "DO NOT MERGE" heading in the description

@stevenaw
Copy link
Member

stevenaw commented Aug 2, 2017

Sorry, I forgot to structure my GH comment so that this would close automatically.
I'm unable to manually close it. @rprouse @CharliePoole @ChrisMaddock can you guys help out?

I see we're handling obsoleted non-attributes (constraints) in a different issue (#2342)

@rprouse rprouse added this to the 3.8 milestone Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants