Skip to content

Deprecated warnings for feature/netsocket/cellular #6264

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

Merged
merged 5 commits into from
Mar 16, 2018
Merged

Conversation

jarvte
Copy link
Contributor

@jarvte jarvte commented Mar 5, 2018

Description

Deprecated warnings for feature/netsocket/cellular. Moved APN_db.h under features/cellular/easy_cellular/.

Pull request type

  • Fix
  • Refactor
  • New target
  • Feature
  • Breaking change

@0xc0170 0xc0170 requested a review from kjbracey March 5, 2018 09:22
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 5, 2018

We have MBED_DEPRECATED , this will come later (when?) ?

@kjbracey
Copy link
Contributor

kjbracey commented Mar 5, 2018

So you're not deprecating it yet, this is just a pre-warning? Not sure how useful that is - if you have the replacement ready, deprecate it now. If you haven't, not much point with the prewarning, although maybe you could point at a feature branch or something. Is the intent that the actual deprecation happens in 5.9, or in a 5.8.y patch?

I think you need to be more specific on what you're deprecating in favour of, rather than just pointing at a directory. Eg if writing a driver derived from PPPCellularInterface or UARTCellularInterface, they should be deriving from AT_CellularDevice etc instead.

If as an app they were using them directly as "generic" they should doing what? There's no direct equivalent - something providing "CellularBase" on an arbitrary FileHandle or set of pins. Does AT_CellularDevice work directly without inheritance - would that give a generic base driver with new API? Could EasyCellularConnection have extra constructors taking specific pins or a FileHandle, so it could be a direct substitute?

For OnboardModemInterface as an app, I guess the replacement is yet to come - it will be CellularBase::get_default_instance() or NetworkInterface::get_default_Instance() in 5.9 if #6108 happens.

Why move the APN database? It's a general utility - if it's not provided by the main framework and you're expecting apps to do APN lookup themselves if not using the easy wrapper, which I understood to be the case, it should remain in a utility position so they can get at it. The easy wrapper and PPPCellularInterface are a couple of potential users, not the only ones.

@AnttiKauppila
Copy link

Hi @kjbracey-arm, we cannot decide when this can be deprecated; It is Mbed Os decision.
We want to put this text here for guiding developers not to use these files anymore as the support for those have ended. As I have understood deprecation might happen when Mbed OS 6.0 is introduced, but it might as well not happen.

I agree that commenting should be more specific for developer to easier find a replacement.

IMHO APN database should not be next to deprecated classes because developers might think it will be deprecated as well.

@kjbracey
Copy link
Contributor

kjbracey commented Mar 5, 2018

Deprecation marker would presumably go into 5.x.y; 6.0 is when stuff marked as deprecated in 5.x.y could actually be deleted.

I would suggest putting actual real MBED_DEPRECATED markers into master ready for release in 5.9 - gives us time to adjust anything to have concrete answers for what the direct replacement is (and by which time we know any kinks in this first 5.8 iteration will have been worked out).

If that's planned, these pre-warnings might be worthwhile to do first for a patch release.

If you want the APN database next to the new code, then features/cellular/utils or features/cellular/framework/utils would be fine.

@0xc0170
Copy link
Contributor

0xc0170 commented Mar 8, 2018

Looks like a bad rebase , as some commits here are duplicates? please review

@jarvte jarvte force-pushed the master branch 2 times, most recently from b143f78 to e073e09 Compare March 8, 2018 10:44
@0xc0170
Copy link
Contributor

0xc0170 commented Mar 12, 2018

I would suggest putting actual real MBED_DEPRECATED markers into master ready for release in 5.9 - gives us time to adjust anything to have concrete answers for what the direct replacement is (and by which time we know any kinks in this first 5.8 iteration will have been worked out).

If that's planned, these pre-warnings might be worthwhile to do first for a patch release.

@AnttiKauppila Is this correct, MBED_DEPRECATED intentionally not used here, will come later?

@AnttiKauppila
Copy link

We have agreed to use MBED_DEPRECATED. We will update this

@AnttiKauppila
Copy link

Actually used MBED_DEPRECATED_SINCE as we plan to drop support in Mbed-OS 5.9.

@jarvte
Copy link
Contributor Author

jarvte commented Mar 13, 2018

ARM internal ref: IOTCELL-544

@0xc0170 0xc0170 requested a review from AnttiKauppila March 13, 2018 14:10
@cmonr cmonr mentioned this pull request Mar 13, 2018
5 tasks
@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2018

Build : FAILURE

Build number : 1450
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6264/

@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2018

Will relaunch when able to. ARM license CI issue.

@cmonr
Copy link
Contributor

cmonr commented Mar 15, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2018

Build : SUCCESS

Build number : 1458
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/6264/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2018

@mbed-ci
Copy link

mbed-ci commented Mar 15, 2018

@cmonr
Copy link
Contributor

cmonr commented Mar 16, 2018

CI issue: ARM network licenses could not be checked out during build.

Restarting.
/morph export-build

@mbed-ci
Copy link

mbed-ci commented Mar 16, 2018

@cmonr cmonr merged commit 7c30faf into ARMmbed:master Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants