nextcloud / nextcloud/contacts

Groups field counting elements failed

Open
#1,719 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug
Dominant language
JavaScript
Stars
642
Forks
220
Avg merge
14h 39m
Merged PRs (30d)
51

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.
Steps to reproduce
  1. create a contact in Contacts app, enter few groups
  2. change the width of the display by changing the width of the browser page
Expected behaviour

The number of the fields in the group including +# shall be constant and true.

Actual behaviour

The number of the fields in the group including +# is not constant and is false.

In the example, three groups were chosen. Count 2 or 3 is shown depending on the display width.

groups with contacts (list)
Screenshot_2020-07-29 Contacts - e
Screenshot_2020-07-29 Contacts - e (1)
Screenshot_2020-07-29 Contacts - e (2)
Screenshot_2020-07-29 Contacts - e

(I have seen count +1 or +2 with other contacts, so summing and subtracting somehow works in the background... I quess)

Server configuration

Operating system:

browser: Firefox Quantum 78.0.2 (64-bit)

Web server:

Database:

PHP version:

Nextcloud version: (see Nextcloud admin page)

NC 18 (ecloud.global)

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)
LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration

Browser:

Operating system:

Logs
Web server error log
Web server error log
Insert your webserver log here
Nextcloud log (data/nextcloud.log)
Nextcloud log
Insert your Nextcloud log here
Browser log
Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Contacts app issue with a contact assigned to several groups, then resize the browser window and compare the displayed group count. Trace the frontend behavior responsible for the group list and its +N count; done means the count remains constant and accurate across display widths.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.