-
Notifications
You must be signed in to change notification settings - Fork 157
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
[full-ci] Fix inconsistencies in share expiry dates #6084
Conversation
1f687be
to
0c7a443
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐 🕙 🕥 🕦 🥳
packages/web-app-files/src/components/SideBar/Links/PublicLinks/LinkEdit.vue
Outdated
Show resolved
Hide resolved
expireDate: DateTime.fromJSDate(this.expireDate) | ||
.setLocale(this.$language.current) | ||
.endOf('day') | ||
.toFormat("yyyy-MM-dd'T'HH:mm:ssZZZ"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You chose this format because Reva is not compatible with the standard ISO format, right? If so, we should create tickets in Reva to fix that and in Web to be able to track it. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've created cs3org/reva#2322. I'll create the corresponding Web issue as well once this has been acknowledged and accepted from their side.
Updated the PR, thanks to the tests I found out that a) removing expiry dates from people shares did not work because of my changes and b) removing expiry dates from public links did not work at all in the past. Both should be fixed now. Edit: I'm thinking about adding an integration test for b), as we have one for a) as well 🤔 |
👍 for the integration test for (b) - nice findings! 😍 |
date.setDate(new Date().getDate() + 1) | ||
|
||
return date | ||
return DateTime.now().setLocale(this.$language.current).toJSDate() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1f0d23a
to
fc12c00
Compare
Rebased on current master and running as |
Thx @pascalwengerter ! I already started implementing integration tests for this, my plan still is to finish that this week. |
Ok cool, was under the impression this one either needed a fix in Reva or a green CI to be merged :D but more tests it is, nice. Maybe we'll have to update the acceptance tests too/even have unexpected passes |
@JammingBen could you take a look at #5663 when you're in the process again? Maybe that's related&easy enough to fix it in this PR, too |
Kudos, SonarCloud Quality Gate passed! |
Results for oCISSharingPublic https://drone.owncloud.com/owncloud/web/20890/65/1
|
Description
DateTime
object more consistently across the code base (replacing JavaScript'snew Date()
).Types of changes
Checklist: