Comments (13)
This seems like an obvious feature 😄 Let me see what I can do...
from nodebb-plugin-archiver.
https://github.com/julianlam/nodebb-plugin-archiver/blob/master/index.js#L91-L95
Looks like it will archive pinned topics as well if no category is specified because it will use topics:tid
sorted set which contains all topic ids.
from nodebb-plugin-archiver.
@timimasa -- in my testing, it already excludes pinned tids...
from nodebb-plugin-archiver.
@timimasa -- in my testing, it already excludes pinned tids...
Hmm, I just ran another test and the archiver locked my pinned topics. Is there an option in admin to exclude pinned topics? We only need to archive topics that are not pinned and keep the pinned topics forever (or as long as we could).
from nodebb-plugin-archiver.
Hmm... what version of NodeBB are you running? We've stored pinned topics in a separate set cid:<cid>:tids:pinned
since Nov 2016 (v1.4.0), and archiver just didn't get updated to check those sorted sets, so there isn't a way for a pinned topic to become archived anymore.
Unless the topic is in both sorted sets? You'd have to verify for me by diving into your database. Let me know if you need help on what to look for...
from nodebb-plugin-archiver.
I'm on the latest version of NodeBB (v1.17.1). I'll look into sorted sets and let you know if I have any questions.
from nodebb-plugin-archiver.
Hmm... what version of NodeBB are you running? We've stored pinned topics in a separate set
cid:<cid>:tids:pinned
since Nov 2016 (v1.4.0), and archiver just didn't get updated to check those sorted sets, so there isn't a way for a pinned topic to become archived anymore.Unless the topic is in both sorted sets? You'd have to verify for me by diving into your database. Let me know if you need help on what to look for...
Hi @julianlam , I created a few pinned topics to test and ran the archiver, but it still tells me that the pinned items that I created days ago will get archived.
I was thinking maybe the reason why the archiver archived pinned topics in the past was because the topics were created before 1.17 (topics were created in 1.16).
Let's assumed that they are in both sets, what could cause this issue?
from nodebb-plugin-archiver.
@timimasa So to clarify, newly pinned topics don't trip up archiver, right?
In that case, can you unpin and repin those old topics, and test? That will probably resolve the issue,
Let's assumed that they are in both sets, what could cause this issue?
Most likely what happened is @barisusakli changed the way pinned topics were stored so it was easier to retrieve them or paginate through a category's topics without having to handle the pinned topics.
from nodebb-plugin-archiver.
@timimasa So to clarify, newly pinned topics don't trip up archiver, right?
In that case, can you unpin and repin those old topics, and test? That will probably resolve the issue,
Let's assumed that they are in both sets, what could cause this issue?
Most likely what happened is @barisusakli changed the way pinned topics were stored so it was easier to retrieve them or paginate through a category's topics without having to handle the pinned topics.
I tried to unpin and repin old and new topics, but these topics are still being archived.
Now, I'm curious if I am the only one having this issue.
from nodebb-plugin-archiver.
Now, I'm curious if I am the only one having this issue.
@timimasa Might be, might not be. That's the fun thing with bugs! 😆
So to clarify, you don't see this happening to newly pinned topics? Just old topics that were pinned, and you've tried unpinning and repinning, to no avail?
If that is the case, then we may need to write you an upgrade script to fix.
from nodebb-plugin-archiver.
So to clarify, you don't see this happening to newly pinned topics? Just old topics that were pinned, and you've tried unpinning and repinning, to no avail?
It's happening to old and new pinned topics. Yes, I've tried unpinning and repinning, but to no avail.
It's almost as if the archiver is not seeing or respecting pinned topics when ran.
By the way, thank you for your assistance with this. :)
from nodebb-plugin-archiver.
Aaaaah... that's good to know, thanks for the context @barisusakli
from nodebb-plugin-archiver.
v5 of archiver now can exclude pinned topics if toggled on via the ACP.
It is considered a breaking change because previous behaviour had pinned topics archived if no categories were selected, and pinned topics excluded if there were.
The behaviour has now been standardised so it will adhere to the ACP option.
from nodebb-plugin-archiver.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodebb-plugin-archiver.