LuckPerms

LuckPerms

41.4k Downloads

Information does not update after bulkupdate

Foorack opened this issue ยท 5 comments

commented

Steps to reproduce:

  1. Setup a few groups with suffixes or other meta/information (with MongoDB as storage).
  2. Bulk-remove all suffixes or any other information.
  3. When running lp group admin2 info the old meta-data still shows. This is not updated until the command lp sync is run.

I am not certain if this is because of the MongoDB adapter or something else. Nor am I sure if this is supposed behavior. If so then it would be good to inform sync is required after a builk-update on the wiki. ๐Ÿ˜ƒ

Version:
ekrankopio de 2017-12-01 13-04-40

commented

From more testing, this seems to happen only on meta-data and suffixes.[1] Not on permissions. ๐Ÿค”

[1] (I have not tested on prefixes because I want to keep them. ๐Ÿคฃ)

commented

Can you give more infos please?

2. Bulk-remove all suffixes or any other information. isn't a good explanation...
What exact command did you use?

commented

@Andre601

  1. lp group admin2 meta info
  2. lp bulkupdate groups delete "permission ~~ suffix.%"
  3. lp group admin2 meta info <-- the same suffix still shows, I have to run lp sync for it to update.
commented

Did you try to use == instead of ~~?

commented

@Andre601 I don't understand how that would help. ๐Ÿค” It updated successfully. The bug I am reporting is that the (what I assume) cache this not update. Running lp sync made it display the correct result, however, I think that bulkupdate should clear the cache automatically.