-
Notifications
You must be signed in to change notification settings - Fork 3k
Adding KVStore Examples for Global API #8863
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
Conversation
@cmonr , @0xc0170 , @AnotherButler , @dannybenor - I'd appreciate your review - thanks. |
@MarceloSalazar @ashok-rao @adbridge Please review |
Repositories should follow what we have in this repo.
|
@0xc0170 we will do. |
@0xc0170 - added license and contribution information and files |
Correct, the intention is the new repositories should follow it (we check them manually at the moment). We might do a cleanup of current repo in the next feature release (and having automatic check for license + contributing). It is partially covered here : https://github.com/ARMmbed/mbed-os-5-docs/blob/development/docs/reference/contributing/guidelines/guidelines.md#contributing-guidelines . I'll send an update to the docs to state it explicitly there. Update: I've sent PR to add it to the docs: ARMmbed/mbed-os-5-docs#848 |
@offirko @dannybenor Can you help me to understand the differences between the examples? I assume mbed-os-example-kvstore is the one that would be used by most developers, whether mbed-os-example-kvstore-class-api is using low-level APIs? is this correct? |
@MarceloSalazar The examples are for customers and your are their representative. |
@MarceloSalazar - it kinda reminds fopen/fwrite/fread -vs-open/write/read .. both are used |
@dannybenor I'm alright with adding another example, but would you/your team be willing to compact these two examples into a single repo? Something like what NFC does with theirs? Reference: https://github.com/ARMmbed/mbed-os-example-nfc Similar to @MarceloSalazar's thoughts, it seems like the two are closely related. |
They were in a single repo. @MarceloSalazar asked for the separation to support online compiler... |
OH. Well then. |
So here's an idea. No one is saying that we don't want the examples. Might need other @ARMmbed/mbed-os-maintainers and @MarceloSalazar to chime in. Didn't know the part about wanting the split for the online compiler, although that sounds odd. |
Thanks for splitting the examples. This greatly helps with the review of the docs and application when using both Mbed CLI and Online Compiler. Otherwise, we'd need to do a number of hacks (git clone, delete folders, ets), which is not great for users. We should just use My main request right now is to clarify the name of the |
@MarceloSalazar The name reflects exactly what the example is. It is clear that kvstore is the key that you will look for in the documentation if you don't know what it is. I believe people looks for examples like this when they want to use some Mbed OS functionality. Kvstore is the name of this functionality. Recommend to leave the name as is. |
This will soon complete the CI (expecting green). Please finalize reviews soon My addition - also not sure about class-api example - shouldn't this be in docs rather (we provide code snippets in the doxygen docs for class, also docs pages have own documentation where this code can live) ? or will be linked there as own example? |
I like the idea of code snippets in the docs for this class-api example, as it's a reference for a different kind of users but probably not the example that most people will be using as starting point. |
Looks like exporters will fail
There's I am going to fetch this locally, have seen this failure yesterday somewhere. This indicates there's missing startup file. not related to this PR |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
@bulislaw Please review above comments about class-api example |
I agree, I don't like idea of proliferating examples as that introduces maintenance burden. One should be enough and we can extend the docs (not necessarily for 5.11 if there's no time) |
OK. I understand now that I know nothing about the goal of the examples. Will be good to get an explanation at some point why we do not want an example for 3 new classes, with customer facing API added in 5.11. |
Starting CI now |
I believe @MarceloSalazar this as approved, so started CI to get this through asap |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Restarting export CI job. |
Restarted exporters job after jenkins was restarted |
Description
KVStore Examples for Global API
(https://github.com/ARMmbed/mbed-os-example-kvstore)
Pull request type