Skip to content

Conversation

@dartcafe
Copy link
Collaborator

No description provided.

@dartcafe dartcafe added this to the backlog milestone Mar 24, 2025
Copy link
Collaborator Author

@dartcafe dartcafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First quick look.

lib/Db/Poll.php Outdated
Comment on lines 81 to 84
public const TYPE_TEXT = 'textPoll';
public const TYPE_IND_TEXT = 'textIndPoll';
public const TYPE_RANK_TEXT = 'textRankPoll';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer leaving the constants unchanged. Don't change the constants. Just add the new one (TYPE_RANKED_TEXT).

Or better TYPE_TEXT_RANKED

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it doesnt mind u i've keep TYPE_RANKED_POOL like my field is textRankPool and as i'm lazy

Copy link
Collaborator Author

@dartcafe dartcafe Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is because of sorting and hierarchical context. At first it is a text poll and second there is a voting variation.

That is not important, but changing the existing types is no good idea. Already existing polls are marked as textPoll inside the database.

Leaving the existent constants name results in less code changes to review.

lib/Db/Poll.php Outdated
protected string $access = '';
protected int $anonymous = 0;
protected int $allowMaybe = 0;
protected $choosenRank = [];
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid array as database type. I am not sure, if it work with all db engines properly.
Prefer a string and add getters which decode and encode the string into an array.
BTW: typo choosen => chosen

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya right. I've change it to string i will test the modification.

@@ -0,0 +1,171 @@
<template>
<div class="option-container">
<!-- Menu déroulant pour sélectionner une option -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please. Comments always in English language!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep

@dartcafe dartcafe marked this pull request as draft March 24, 2025 17:20
@dartcafe dartcafe self-assigned this Mar 24, 2025
@vinimoz
Copy link

vinimoz commented Mar 25, 2025

Sorry, but i'm a newbie, in github, vue, etc 😄 . I've proceed with modifications and fix. I've try several time to put in the branch master-7, Rank votes features, without luck, i always get access denied. I will put the update on my fork

@vinimoz
Copy link

vinimoz commented Mar 25, 2025

After several tries, i manage to do a commit with the changes. I can see my commit. On the commit. I was trying to change the mode draft but i think i cannot do that.

@dartcafe
Copy link
Collaborator Author

Sorry, but i'm a newbie, in github, vue, etc 😄 . I've proceed with modifications and fix. I've try several time to put in the branch master-7, Rank votes features, without luck, i always get access denied. I will put the update on my fork

Don't care. That's the way I went through, when I started here.

@dartcafe
Copy link
Collaborator Author

After several tries, i manage to do a commit with the changes. I can see my commit. On the commit. I was trying to change the mode draft but i think i cannot do that.

You can't change it, because you are not a member of the nextcloud organisation (organisation here on Github). All changes are done inside your branch and end here in this PR as soon as you commit them to your branch (in your repo)

@dartcafe
Copy link
Collaborator Author

@vinimoz To make the changes better readable please run composer run cs:fix.

You could also run eslint (npm run lint:fix)

@vinimoz
Copy link

vinimoz commented Mar 26, 2025

Yesterday, i commit and other on. eslint doenst give me any more error. Regarding phpcs and php-cs for lib directory
php-cs : Found 82 of 197 files that can be fixed in 1.444 seconds, 23.12 MB memory used
phpcs: PHPCBF CAN FIX THE 398 MARKED SNIFF VIOLATIONS AUTOMATICALLY
I don't put the fix options and commit it as i modify only 3 files in lib directory. If u want i do it an commit it.

@vinimoz vinimoz force-pushed the Rank_votes_feature branch from d2b16e6 to a918de1 Compare March 26, 2025 23:43
hamza221 and others added 7 commits March 26, 2025 14:02
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
This reverts commit 46aa777.

Signed-off-by: dartcafe <github@dartcafe.de>
This reverts commit c5a55ab.

Signed-off-by: dartcafe <github@dartcafe.de>
Signed-off-by: vinimoz <trappe.vincent@laposte.net>
- Remove modification of textPoll to textIndPoll
- Change of array to string
- Updates translation
- Some fix

Signed-off-by: vinimoz <trappe.vincent@laposte.net>
Signed-off-by: vinimoz <trappe.vincent@laposte.net>
…nt fix

Signed-off-by: vinimoz <trappe.vincent@laposte.net>
@vinimoz vinimoz force-pushed the Rank_votes_feature branch from a918de1 to 007a63e Compare March 27, 2025 00:06
@dartcafe
Copy link
Collaborator Author

something is not clean here.

You commited reverted commits from the master-7 branch (affecting the translation files). How did you create your branch?

@vinimoz
Copy link

vinimoz commented Mar 28, 2025 via email

@dartcafe
Copy link
Collaborator Author

@vinimoz Are you still working on this?

I would prefer to close this PR out of the following reasons:

  • This PR is based on v7 and v7 will slowly become legacy, since the v8 is nearly about to leave beta state
  • v8's code base is not compatible to v7's, so any changes will have a short life
  • I already prepared voting variants here
    A ranked voting is rather a voting variant but a poll type.
  • We should think the implementation first from the UI.
    I prefer another UI for ranked votes (something like moving options by drag and drop into an order instead of entering numbers)

@vinimoz
Copy link

vinimoz commented Apr 24, 2025 via email

@artlog
Copy link

artlog commented Aug 5, 2025

@vinimoz i am pushing forward this with #4200 pull request to converge for this enhancement to see the light. PRocess still ongoing.

@dartcafe dartcafe removed this from the backlog milestone Aug 6, 2025
@dartcafe
Copy link
Collaborator Author

@vinimoz I think this is superseded by #4200. So I will close it here.

And maybe you want to have a look at it, since @artlog adopted your work there.

@dartcafe dartcafe closed this Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants