Skip to content

Conversation

@call-me-matt
Copy link
Member

required in order to optimize regular background updates of contact avatars from social networks (see nextcloud/contacts#1722 (comment))

required in order to optimize regular background updates of contact avatars from social networks (see nextcloud/contacts#1722 (comment))
@faily-bot
Copy link

faily-bot bot commented Aug 2, 2020

🤖 beep boop beep 🤖

Here are the logs for the failed build:

Status of 31295: failure

integration-provisioning-v1

  • build/integration/features/provisioning-v1.feature:322
Show full log
  Scenario: get enabled apps                           # /drone/src/build/integration/features/provisioning-v1.feature:322
    Given As an "admin"                                # FeatureContext::asAn()
[Sun Aug  2 12:21:43 2020] 127.0.0.1:40142 [200]: /ocs/v1.php/cloud/apps?filter=enabled
    When sending "GET" to "/cloud/apps?filter=enabled" # FeatureContext::sendingTo()
    Then the OCS status code should be "100"           # FeatureContext::theOCSStatusCodeShouldBe()
    And the HTTP status code should be "200"           # FeatureContext::theHTTPStatusCodeShouldBe()
    And apps returned are                              # FeatureContext::theAppsShouldBe()
      | accessibility           |
      | cloud_federation_api    |
      | comments                |
      | contactsinteraction     |
      | dashboard               |
      | dav                     |
      | federatedfilesharing    |
      | federation              |
      | files                   |
      | files_sharing           |
      | files_trashbin          |
      | files_versions          |
      | lookup_server_connector |
      | provisioning_api        |
      | settings                |
      | sharebymail             |
      | systemtags              |
      | theming                 |
      | twofactor_backupcodes   |
      | updatenotification      |
      | user_ldap               |
      | viewer                  |
      | workflowengine          |
      | files_external          |
      | oauth2                  |
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
      -    23 => 'viewer'
      -    24 => 'workflowengine'
      +    23 => 'user_status'
      +    24 => 'viewer'
      +    25 => 'workflowengine'
[Sun Aug  2 12:21:43 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Sun Aug  2 12:21:43 2020] 127.0.0.1:40176 [401]: /remote.php/webdav/myFileToComment.txt
[Sun Aug  2 12:21:43 2020] 127.0.0.1:40178 [207]: /remote.php/dav/systemtags/
[Sun Aug  2 12:21:43 2020] Login failed: 'user0' (Remote IP: '127.0.0.1')
[Sun Aug  2 12:21:43 2020] 127.0.0.1:40200 [401]: /remote.php/webdav/myFileToTag.txt
[Sun Aug  2 12:21:44 2020] 127.0.0.1:40206 [404]: /remote.php/dav/addressbooks/users/admin/MyAddressbook
[Sun Aug  2 12:21:44 2020] 127.0.0.1:40224 [404]: /remote.php/dav/calendars/admin/MyCalendar

@skjnldsv
Copy link
Member

skjnldsv commented Aug 2, 2020

Can we backport? 🤔

@skjnldsv skjnldsv added 3. to review Waiting for reviews feature: dav labels Aug 2, 2020
@skjnldsv skjnldsv added this to the Nextcloud 20 milestone Aug 2, 2020
Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Hmm this only works for new entries. Do we have a way to quickly trigger a reupdate of all entries?

@skjnldsv
Copy link
Member

skjnldsv commented Aug 3, 2020

Hmm this only works for new entries. Do we have a way to quickly trigger a reupdate of all entries?

no idea :/

@georgehrke
Copy link
Member

@call-me-matt
Copy link
Member Author

this only works for new entries

wow, you are right! I did not realize that before.
I could trigger a re-index whenever my option is activated by the user (default is off). So for my use case it would work.

@nickvergessen
Copy link
Member

wow, you are right! I did not realize that before.
I could trigger a re-index whenever my option is activated by the user (default is off). So for my use case it would work.

Or you copy what georg did for the calendar?

@MorrisJobke MorrisJobke mentioned this pull request Aug 11, 2020
57 tasks
@rullzer
Copy link
Member

rullzer commented Aug 11, 2020

So what do we do here?

@georgehrke
Copy link
Member

@call-me-matt Can you implement something similar to what I did back then for CalDAV?

It's fine to do it once on upgrade, no need to do it every time a user enables/disables the option.

It would be good to optimize the SQL query and only reindex vCards that actually contain X-SOCIALPROFILE in the carddata.

@call-me-matt
Copy link
Member Author

call-me-matt commented Aug 11, 2020

I'd say we should add the social profile to the search index and I'll take it as an action for the contacts app to re-index.
... I suppose it has to be done in the contacts app? or is it also in dav where I need to place the re-indexing?

@call-me-matt
Copy link
Member Author

call-me-matt commented Aug 21, 2020

@MorrisJobke modified the milestones: Nextcloud 20, Nextcloud 21 yesterday

oh, it's not coming in NCv20 anymore? how come, is there anything missing?

@skjnldsv
Copy link
Member

oh, it's not coming in NCv20 anymore? how come, is there anything missing?

We're passed the feature freeze :)
Beta1 has been released

call-me-matt added a commit to call-me-matt/contacts that referenced this pull request Aug 22, 2020
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
call-me-matt added a commit to call-me-matt/contacts that referenced this pull request Sep 5, 2020
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
This was referenced Dec 14, 2020
@rullzer rullzer merged commit 72fda10 into master Dec 22, 2020
@rullzer rullzer deleted the enh/index-socialprofile branch December 22, 2020 08:43
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 feature: dav

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants