public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Wolfgang Bumiller <w.bumiller@proxmox.com>
Cc: Philipp Hufnagl <p.hufnagl@proxmox.com>,
	Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Lukas Wagner <l.wagner@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox-backup 1/3] fix #4315: jobs: modify GroupFilter so include/exclude is tracked
Date: Tue, 7 Nov 2023 08:55:01 +0100	[thread overview]
Message-ID: <ae228735-6ea8-4f49-94f8-1da29c091c77@proxmox.com> (raw)
In-Reply-To: <skraqtvbzlpulrr4u2joslsui7mhce2sichjefpnapbidspcjr@a3c4s3zmq7oy>

Am 07/11/2023 um 08:43 schrieb Wolfgang Bumiller:
> On Wed, Oct 25, 2023 at 05:45:11PM +0200, Thomas Lamprecht wrote:
>> Easier to understand is *much* cleaner though, any admin that changes
>> a simple include/exclude filter manually, e.g., reversing the order,
>> has no idea that the end result is completely different.
> 
> I disagree that either of them is actually easier, and we already have
> order dependent include/exclude behavior in `.pxarexcludes` and on the

order is an extra dimension that users need to take care when writing
these, so by that alone it's easy to state that not having that is
simpler (naturally one can make it way worse by doing a bad UI, but well,
just don't do that).

And, we can always go for an order adhering model later

> CLI via `--exclude` when creating a backup with proxmox-backup-client.

Which is not really good UX, the "find" core util, and similar consorts,
are exactly deemed as hard to understand as that implicit order matters
is making it harder for users, especially those without a programming
background (i.e., the majority of our users).

> Also, `.gitignore` also works like this, you have exclude and includes
> in order, the last match wins.

Not sure if git should be used a pillar of good UX example, some would
even say that doing the opposite might be warranted in that case ;-P

> This makes it much easier to say things like "exclude 1-100 except 50",

Not really, you just use "include 50" and if the remaining set is bigger
do "exclude 1-49; exclude 51-100;" and especially in bigger examples this
is easier to reason about for the standard users.

> which, to me, seems like the most complex case you would want anyway?
> 
> Which you find easier probably depends on what you see more often, but
> for consistency's sake it may make more sense to stick to what we
> already have?

pxarexclude has nothing to do with this though? Would not mix walking
a file-system with filtering backup groups, two very different things.




  reply	other threads:[~2023-11-07  7:55 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 15:42 [pbs-devel] [PATCH proxmox-backup 0/3] fix #4315: datastore: Exclude entries from sync Philipp Hufnagl
2023-10-23 15:43 ` [pbs-devel] [PATCH proxmox-backup 1/3] fix #4315: jobs: modify GroupFilter so include/exclude is tracked Philipp Hufnagl
2023-10-24  9:18   ` Lukas Wagner
2023-10-24  9:54     ` Philipp Hufnagl
2023-10-24 10:43       ` Lukas Wagner
2023-10-24 14:32         ` Philipp Hufnagl
2023-10-25 13:33           ` Thomas Lamprecht
2023-10-25 15:07             ` Philipp Hufnagl
2023-10-25 15:45               ` Thomas Lamprecht
2023-11-07  7:43                 ` Wolfgang Bumiller
2023-11-07  7:55                   ` Thomas Lamprecht [this message]
2023-11-07  8:26                     ` Wolfgang Bumiller
2023-11-07  9:01                       ` Dominik Csapak
2023-11-07 11:10                         ` Thomas Lamprecht
2023-11-07 11:07                       ` Thomas Lamprecht
2023-10-23 15:43 ` [pbs-devel] [PATCH proxmox-backup 2/3] ui: Show if Filter includes or excludes Philipp Hufnagl
2023-10-24 12:20   ` Lukas Wagner
2023-10-24 12:27   ` Lukas Wagner
2023-10-24 12:36     ` Philipp Hufnagl
2023-10-24 14:09       ` Philipp Hufnagl
2023-10-24 14:12         ` Lukas Wagner
2023-10-27  9:29           ` Thomas Lamprecht
2023-10-23 15:43 ` [pbs-devel] [PATCH proxmox-backup 3/3] docs: document new include/exclude paramenter Philipp Hufnagl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae228735-6ea8-4f49-94f8-1da29c091c77@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=l.wagner@proxmox.com \
    --cc=p.hufnagl@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    --cc=w.bumiller@proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal