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

Impossible to remove tag #1370

Closed
a-phe-lei-a opened this issue Mar 27, 2019 · 6 comments
Closed

Impossible to remove tag #1370

a-phe-lei-a opened this issue Mar 27, 2019 · 6 comments
Labels
stale An issue that hasn't been active for a while... tags tag related issue

Comments

@a-phe-lei-a
Copy link

Operating system

  • macOS

Application

  • Terminal

I have a little bug with the tag. In my iOS I don't have any tag but in cli interface I have. And I don't know how to delete it because I have

> tag remove search
Cannot find "undefined".

Screenshot 2019-03-27 at 20 46 17

@foxmask
Copy link
Contributor

foxmask commented Apr 2, 2019

joplin tag list

Should list them and then you could see the I'd of the tag to delete

@a-phe-lei-a
Copy link
Author

I don't have any id

Screenshot 2019-04-02 at 16 08 06

@foxmask
Copy link
Contributor

foxmask commented Apr 2, 2019

as the help show us, tag list --long should show us the ID and others details ; but it's no more the case today o_O
otherwise, if curl is familiar for you ; you can use curl -XGET http://localhost:41184/tags for example

@kamilko
Copy link

kamilko commented Apr 9, 2019

I can confirm that tags are not properly synced with terminal app.
Steps to get this problem:

  • install desktop version
  • point synchronisation to webdav/nextcloud
  • leave default notes and tags
  • install terminal version (I did everything on the same mac)
  • point synchronisation to webdav/nextcloud the same as desktop ver.
  • leave default notes and tags
  • you can also install here mobile version, point sync as in desktop and leave default notes/tags

After this steps you will have notebooks:

  • Welcome
  • Welcome (desktop)
  • Welcome (mobile)
  • all tags duplicated by the three types of install

Now I just cleaned up my desktop application (terminal off, mobile off). Removed all notes and tags, add new notes, notebooks, etc. Fortunately I didn't add new tags here but anyway I played a lot with Import/Export from Evernote and MD files. After full synchronisation with Nextcloud - I just left the application in background.
Then I opened terminal version and waited for full sync. It took a moment but with notebooks and notes everything was synced.
Except tags.
And there is no way to delete tags from commandline because Notes for those tags doesn't exists anymore. Every attempt of :tag remove <name-some-default-tag> ends with Cannot find undefined.
The only option to cleanup those tags is by delete them from table note_tags and tags in sqlite database. Here is the my fortunate "I didn't add own tags", because you can just wipe all data from those tables, not bother with ID or name. Just run:
DELETE FROM tags; DELETE FROM note_tags;
If you already have own tags, then you must delete only the orphaned ones, first checking with some SELECT...LEFT JOIN from tables note_tags, notes and tags.
This problem is only with terminal version, mobile app synchronised tags in proper way. Except this, where they were duplicated between app version. So I think tag named "markdown" created on desktop app is not the same as tag named "markdown" created in terminal app.
I think in this case, tags should be identified by title not by id or tag_id, because this is probably duplication issue.

@tessus tessus added tags tag related issue and removed question-w4f labels May 18, 2019
@stale
Copy link

stale bot commented Sep 22, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the stale An issue that hasn't been active for a while... label Sep 22, 2019
@stale
Copy link

stale bot commented Sep 29, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Sep 29, 2019
@lock lock bot locked and limited conversation to collaborators Oct 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale An issue that hasn't been active for a while... tags tag related issue
Projects
None yet
Development

No branches or pull requests

4 participants