-
Notifications
You must be signed in to change notification settings - Fork 122
cleanup keyNew #3152
Comments
I found some statements where KEY_META is used instead of some of the deprecated flags (like instead of using KEY_MODE its possible to use KEY_META with 2 parameters "mode" and the value as a string. I am trying to rewrite the testcases which uses the deprecated flags but the the test cases with KEY_DIR fails. How can rewrite this one? I tried to use KEY_META, "mode", "0775" but it doesn't work :D .. or shall I really remove all of the tests which use one of the deprecated flags. |
Yes, it is possible but
You do not need to rewrite all testcases but only these which add a value to the test suite.
This one does not test anything of relevance: It only tested the interplay of KEY_DIR and the resulting mode. As both things will be removed, the test does not test anything anymore.
Yes 😄
Maybe some of them test something in the core which is not tested by other tests. You can have a look at https://doc.libelektra.org/coverage/ But most likely all these tests can be remove without changing anything in the coverage of the core. |
I am a little bit confused.. facepalm. I am working on 7fb0dee but where should I commit my changes....cuz I cant see the changes from 7fb... on the master branch. Do I need to commit my changes to that specific commit sha (and how xD...this is like commit-ception) ?! |
Every commit gets a new SHA-1 and a pull request can have several commits. So you simply commit on top of your branch, not on top of a commit (this can happen if you make a checkout of a commit). Simply |
Btw. calling |
The code now lives in another file, but some deprecated flags still exist: libelektra/src/libs/elektra/key.c Lines 222 to 228 in 758d002
|
So the problematic code is mostly in |
There may also be other parts of the codebase that still use the deprecated flags. In general, the issue is basically about removing the lines from For docs and tests mostly means removing broken stuff, for other code you will need to replace Also, if all unused |
[FLOSS H1] For
For
|
…and KEY_VALUE are still used or mentioned in code comments. (see ElektraInitiative#3152)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
and all references to them, replace with other methods (e.g. use KEY_META for comments) closes issue ElektraInitiative#3152 (cleanup keyNew)
remove deprecated meta flags from keyNew (303-334), the documentation of it, and all tests that test them
libelektra/src/libs/elektra/keyhelpers.c
Lines 308 to 339 in 7fb0dee
The text was updated successfully, but these errors were encountered: