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

[Tests-Only] Access last created public link with OCIS #3773

Merged
merged 1 commit into from
Jul 27, 2020

Conversation

haribhandari07
Copy link
Contributor

@haribhandari07 haribhandari07 commented Jul 14, 2020

Description

Run public link tests on ocis

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@haribhandari07 haribhandari07 force-pushed the accessPublicLink branch 5 times, most recently from aaa3fa2 to bfe940e Compare July 20, 2020 09:04
@haribhandari07 haribhandari07 marked this pull request as ready for review July 20, 2020 09:19
@haribhandari07 haribhandari07 force-pushed the accessPublicLink branch 3 times, most recently from 4ea357e to 33d871f Compare July 21, 2020 10:57
@haribhandari07 haribhandari07 self-assigned this Jul 22, 2020
@haribhandari07 haribhandari07 added Status:Needs-Review Needs review from a maintainer QA:team labels Jul 22, 2020
for (const share of shares) {
if (share.share_type === self.SHARE_TYPES.public_link && share.id >= lastFoundShareId) {
lastFoundShareId = share.id
if (share.share_type === self.SHARE_TYPES.public_link && share.stime > lastShareSTime) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to update the lastShareSTime on the loop every time.
Otherwise it will always be 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you need to update the lastShareSTime on the loop every time.
Otherwise it will always be 0
Silly mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QA:team Status:Needs-Review Needs review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Acceptance tests] Access last created public link with oCIS
4 participants