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

Tracking issue for removal of deprecated SDK constant names #31813

Closed
6 tasks done
leafpetersen opened this issue Jan 9, 2018 · 21 comments
Closed
6 tasks done

Tracking issue for removal of deprecated SDK constant names #31813

leafpetersen opened this issue Jan 9, 2018 · 21 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. customer-flutter P1 A high priority bug; for example, a single project is unusable or has many test failures
Milestone

Comments

@leafpetersen
Copy link
Member

leafpetersen commented Jan 9, 2018

The old all caps names for constants in the SDK have been deprecated in favor of camel case versions. This issue tracks the removal of the of old deprecated names.

TODO:

This is part of the larger Dart 2.0 corelib changes tracked here: #31812 .

@leafpetersen leafpetersen added the area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. label Jan 9, 2018
@Hixie
Copy link
Contributor

Hixie commented Jan 9, 2018

As part of this we should have a script that automatically ports old code. We should use that to port Flutter, as a proof of concept. We should then hook that script into flutter upgrade to upgrade everyone's code.

@leafpetersen
Copy link
Member Author

I'll file an issue for that. We may want to consider whether we can do that for at least some of the wave 3 changes as well.

@matanlurey
Copy link
Contributor

matanlurey commented Jan 9, 2018

The difficulty is this would (likely) require analysis-driven refactoring.

We have an internal tool that is near completion for this task. We could spend a couple weeks and open source it, but this needs to be a P1 directive and coordinated ASAP, and not just be a "oh it's <some date>, we need it <this week>".

@leafpetersen
Copy link
Member Author

@Hixie @mit-mit is this something we should aim to have done by March 1st, or (assuming we have an automated migration path) is this something that can be pushed into Q2?

@Hixie
Copy link
Contributor

Hixie commented Jan 9, 2018

It's something we should have before we remove the uppercase constants; I'm not aware of anything that's driving us to remove them by a particular date.

@leafpetersen
Copy link
Member Author

@leafpetersen
Copy link
Member Author

@Hixie Is the infrastructure for upgrading user code via flutter upgrade built out already? That is, is there an existing system which identifies user files to be updated etc can just call out to an appropriate tool? Or does all of that need to be figured out as part of this?

@Hixie
Copy link
Contributor

Hixie commented Jan 10, 2018

@xster was working on something related to this, not sure how far he got. @xster?

@dgrove dgrove added this to the Dart2 Beta 3 milestone Mar 24, 2018
@leafpetersen
Copy link
Member Author

Fix it package here: https://pub.dartlang.org/packages/dart2_fix

@dgrove
Copy link
Contributor

dgrove commented Mar 29, 2018

When is the next step for this?

@leafpetersen
Copy link
Member Author

I'll prepare some docs and an announcement email and follow up on the relevant email lists today.

@dgrove
Copy link
Contributor

dgrove commented Apr 28, 2018

What's the next step here, @leafpetersen ?

@leafpetersen leafpetersen assigned lrhn and unassigned leafpetersen May 1, 2018
@leafpetersen
Copy link
Member Author

@lrhn is going to coordinate this. @zanderso is working on the dart:io part of this. @keertip will handle internal code. @devoncarew will update dart2_fix once we have the list of dart:io renames.

@JekCharlsonYu JekCharlsonYu added this to the Dart2Stable milestone May 17, 2018
@dgrove
Copy link
Contributor

dgrove commented Jun 15, 2018

dart:io is complete. What is remaining?

@lrhn
Copy link
Member

lrhn commented Jun 15, 2018

Removal of usages in packages.
I have the non-dart:io constants removed from all SDK package dependencies. Now it's the rest of the world.
Google code can remove the constants at any time, but it'll be easier if we have a compilable CL for the SDK which removes the declarations.

@JekCharlsonYu JekCharlsonYu added the P1 A high priority bug; for example, a single project is unusable or has many test failures label Jul 12, 2018
@leafpetersen leafpetersen assigned leafpetersen and unassigned lrhn Jul 25, 2018
@leafpetersen
Copy link
Member Author

Once we have a roll to flutter this can be closed.

@leafpetersen
Copy link
Member Author

We've rolled flutter, this is done.

@natebosch
Copy link
Member

Why did we close this? The deprecated constants in at least dart:io still exist. Do we have another issue open to track their removal in Dart 3.0?

static const ACCEPT = acceptHeader;

@natebosch natebosch reopened this Aug 21, 2018
@kevmoo
Copy link
Member

kevmoo commented Aug 21, 2018 via email

@devoncarew
Copy link
Member

Given the expense of deleting the deprecated sdk constants, and relatively low user value to deleting them, I don't think we should delete the dart:io constants.

I think it would make sense to close this issue as covering the non-dart:io constant deletion for Dart 2.0, and open a new issue to determine what if anything we should do with the dart:io constants.

@natebosch
Copy link
Member

SGTM considering non-dart:io constants complete and opening a new issue for dart:io constant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. customer-flutter P1 A high priority bug; for example, a single project is unusable or has many test failures
Projects
None yet
Development

No branches or pull requests

10 participants