Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly format displayName and fields validation #880

Merged
merged 2 commits into from
Jan 25, 2019
Merged

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Jan 25, 2019

Fix #824
Fix #823
Fix #848

@j-ed @plmrn

Unsigned test build: contacts.tar.gz

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@skjnldsv skjnldsv added the 3. to review Waiting for reviews label Jan 25, 2019
@skjnldsv skjnldsv added this to the next milestone Jan 25, 2019
@skjnldsv skjnldsv self-assigned this Jan 25, 2019
@skjnldsv skjnldsv changed the title Properly format displayName and validate fields Properly format displayName and fields validatation Jan 25, 2019
src/models/contact.js Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 25, 2019

Codecov Report

Merging #880 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #880   +/-   ##
=======================================
  Coverage   64.91%   64.91%           
=======================================
  Files           4        4           
  Lines          57       57           
=======================================
  Hits           37       37           
  Misses         20       20

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b3d292...1f86484. Read the comment docs.

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

🐘

.eslintrc.js Show resolved Hide resolved
@skjnldsv skjnldsv merged commit 37434ef into master Jan 25, 2019
@skjnldsv skjnldsv deleted the displayName-fix branch January 25, 2019 11:48
@plmrn
Copy link

plmrn commented Jan 25, 2019

capture d ecran 2019-01-25 a 13 21 09

Tested on Firefox with cleared cache and Safari (which I never use so cache clear as well).

All contacts are not displaying anymore :)

Let me know if you need more info
Thanks a lot

EDIT : the info message that displays on top center of the screen reads "The contact no longer exists on the server"

@skjnldsv
Copy link
Member Author

@plmrn That is interesting ^^'
Please paste your browser logs here :)

@plmrn
Copy link

plmrn commented Jan 25, 2019

@skjnldsv Yes, and to be fair I think it does take care of the problem, although not exactly the way I intended it a first ;)

I don't know exactly what you mean by "browser logs". Here is the content of Firefox's "console" on the contacts page of the cloud:

JQMIGRATE: Migrate is installed, version 1.4.0 jquery-migrate.min.js:2:542
New search handler registered search.js:67:4
Connected to dav!
Object { rootUrl: Getter & Setter, advertisedFeatures: Getter & Setter, currentUserPrincipal: Getter & Setter, principalCollections: Getter & Setter, calendarHomes: Getter & Setter, addressBookHomes: Getter & Setter, parser: Getter & Setter, _isConnected: Getter & Setter, _request: Getter & Setter, … }
Contacts.vue:238
TypeError: "r.join is not a function"
get https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:156:2865
sortedContacts https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:112:2432
sortContacts https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:112:2399
We https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:41:33665
commit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:47:640
commit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:47:618
_withCommit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:47:2143
commit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:47:590
commit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:41:31431
t https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:91:5248
L https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:276:27677
L https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:276:27545
c https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:276:35404
addressbooks.js:385:4

Do you need anything else? Let me know :)

@skjnldsv
Copy link
Member Author

@plmrn thanks a lot!
Please try this one (it will still throw an error) but I added an additional debug.
contacts.tar.gz

@skjnldsv skjnldsv changed the title Properly format displayName and fields validatation Properly format displayName and fields validation Jan 25, 2019
@plmrn
Copy link

plmrn commented Jan 25, 2019

Here goes, redacted for privacy purposes (the array of contacts seemed exhaustive before I trimmed it)

JQMIGRATE: Migrate is installed, version 1.4.0 jquery-migrate.min.js:2:542
New search handler registered search.js:67:4
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html vue.runtime.esm.js:8096
Connected to dav!
{…}

ob: Object { value: {…}, dep: {…}, vmCount: 0 }

_isConnected: Getter & Setter

_request: Getter & Setter

addressBookHomes: Getter & Setter

advertisedFeatures: Getter & Setter

calendarHomes: Getter & Setter

currentUserPrincipal: Getter & Setter

parser: Getter & Setter

principalCollections: Getter & Setter

rootUrl: Getter & Setter

: Object { … }
Contacts.vue:249
null contact.js:350
Array(5) [ "LAST NAME", "FIRST NAME", "", "", "" ]
contact.js:350
null contact.js:350
TypeError: "org.join is not a function"
get https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:43541:18
sortedContacts https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:45500:9
sortContacts https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:45497:8
wrappedMutationHandler https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:41132:5
commitIterator https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:40800:7
commit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:40799:5
_withCommit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:40930:3
commit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:40798:3
boundCommit https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:40743:12
_callee6$/< https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:44921:17
N https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:19545:27674
N https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:19545:27542
u https://cloud.paulmorin.fr/apps/contacts/js/contacts.js:19545:35405
addressbooks.js:530

@skjnldsv
Copy link
Member Author

skjnldsv commented Jan 25, 2019

@plmrn should be fixed in :)
contacts.tar.gz

Thanks for your help!! 🤗

@plmrn
Copy link

plmrn commented Jan 25, 2019

Perfect, thanks for the time!

@skjnldsv skjnldsv modified the milestones: next, 3.0.3 Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants