joplin
joplin copied to clipboard
CLI: Create Subnotebooks
Update: The purpose of this PR allows the user to create subnotebooks in the cli also independently of his currently selected notebook position
This should be the last PR for #1728 (Pre PR request https://github.com/laurent22/joplin/pull/6671)
I have port the command-mkbook
to TypeScript, the reason is simple i wanted to try TypeScript and the opportunity was perfect.
All tests from the root folder are successful, exclude cli-integration.sh
(read below).
In addition to this the possibility for creating of the sub-notebooks from different places was added.
However, i would need a few tips for the tests.
-
Is the
cli-integration.sh
old stuff?
When I run it, i get an error messageError: Cannot open database: Trying to access nodeSqlite before it has been set!!!:
This should have been fixed in the function https://github.com/laurent22/joplin/blob/a114e1b5f771538e8781d8da10abd97f07263a35/packages/lib/testing/test-utils.ts#L328If i understand it right, it seems not to work since the commit
4a7746b
as the packageshim
was added. Additing to it the shell script is not used anywhere (Maybe i am wrong with both). -
Exist one test function which i can use to test
mkbook
from the tui? If not, i will use something similar tocli-integration-tests
execCommand
or theexecCommand2
Can anyone answer my question above? Thanks in advance! @laurent22 @personalizedrefrigerator
Also please remove the translation files. We do that in separate commits
And you can ignore cli-integration.sh, it's deprecated
Also please remove the translation files. We do that in separate commits
Do i understand it right that i need to do a second PR with the modified translation files? Or will it be done in a different workflow for example from the maintainer side?
Do i understand it right that i need to do a second PR with the modified translation files? Or will it be done in a different workflow for example from the maintainer side?
Yes from the maintainer side. We run a script that updates all translations in one commit
Tests are added now. Please give me feedback if i can improve anything in the tests.
From my side both PRs (#6671, #6722) are ready for merge.
@laurent22 Can you merge it or is anything from my side to do? People can test the pre-release maybe they will found some good improve ideas.
Test should also be fixed as well as @laurent22 improvement suggestions.
The pull request top post should include a full description of the feature: what it does, how it does it, with examples of command lines. We don't read what's linked as the info is usually incomplete.
The pull request top post should include a full description of the feature: what it does, how it does it, with examples of command lines. We don't read what's linked as the info is usually incomplete.
After a few conversations, I get the information that you are not reading what is linked.... As i have seen it, the contributing readme has beend adjusted yesterday. https://github.com/laurent22/joplin/commit/9781a33419e425748c3a59c2ffc3d65893419ac0 - Adjust the Description
@laurent22 i have asked several questions https://github.com/laurent22/joplin/pull/6722#discussion_r976444547 to which I would need an answer, so than i can continue...
Still looking forward to this feature! As I understand it, you can only create sub-notebooks using the desktop version. I use the Android app and the CLI version but not the desktop version, so this is rather inconvenient.
As I have not received a reply to my message regarding a decision. I am removing the tests to speed up the CI pipeline as I described in Solution 1.
Should be done now - tests have run cleanly.
What is the next step for this?
Conflicts need to be fixed and branch rebased. Also run "yarn run updateIgnored" from root
Conflicts need to be fixed and branch rebased. Also run "yarn run updateIgnored" from root
A merge instead of rebase was performed also yarn run updateIgnored
from root
Tests have gone cleanly.
@charlescochran thanks for keeping up!
recheck
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
@laurent22 You have really earned the beer / coffee! Please check again if the improvements fit like this.
@k33pn3xtlvl, we plan to release a new version 2.10 of the CLI app and hopefully your feature can be included. Please let me know if you need anything to get this completed!
I'm currently busy, I'll do it this week (probably today or the day after tomorrow). Thanks for your support.
@laurent22 Please look over it again. Thanks in advance!
All good now, thanks @k33pn3xtlvl!