yeti icon indicating copy to clipboard operation
yeti copied to clipboard

Incorrect export

Open dumprop opened this issue 2 years ago • 1 comments

My export setting image Result image These IP's without "old" tag image In fact I have "old" tag in 99% cases, but it is expired and should not affect the export image But YETI still use it (doesn't matter fresh or not)

Probably export.py should be fixed something like that

        for t in self.exclude_tags:
            q_exclude |= Q(tags__match__ne={"name": t.name, "fresh": True})

On https://github.com/yeti-platform/yeti/blob/fcd3ee3d3d064df772d0392c20c22aad2bc4c8e6/core/exports/export.py#L120

dumprop avatar Aug 23 '21 06:08 dumprop

Thomas and me decided that it would be best to take into export the freshness of the tag (smthg like in my example), but add the ability to export by expired tags, too (as a BooleanField like "only consider fresh tags in include and exclude")

dumprop avatar Aug 23 '21 10:08 dumprop