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

Add filepicker filter #577

Merged
merged 2 commits into from
Nov 2, 2022
Merged

Add filepicker filter #577

merged 2 commits into from
Nov 2, 2022

Conversation

Pytal
Copy link
Contributor

@Pytal Pytal commented May 3, 2022

Close #560

@Pytal Pytal added the enhancement New feature or request label May 3, 2022
@Pytal Pytal self-assigned this May 3, 2022
@Pytal
Copy link
Contributor Author

Pytal commented May 5, 2022

@PVince81 any questions about this that we need to discuss?


public constructor(title: string,
multiSelect: boolean,
mimeTypeFilter: string[],
modal: boolean,
type: FilePickerType,
directoriesAllowed: boolean,
path?: string) {
path?: string,
filter?: Nextcloud.v24.FilePickerFilter) {
Copy link
Contributor

Choose a reason for hiding this comment

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

am not familiar enough with Typescript to be able to decide whether it's a good idea to define the filter this way

@ChristophWurst can you confirm ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Right. That would wrongly indicate that the argument is available for 22 and 23 as well, doesn't it?

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 believe @PVince81 is referring to the Nextcloud.v24.FilePickerFilter type which makes sense to me as it's definition and functionality is stable as per nextcloud/server#31972 introduced in Nextcloud 24, otherwise I guess we could have a Nextcloud.Stable namespace in https://github.com/nextcloud/nextcloud-typings but is maybe not worth the upkeep

I'd suggest we just bump the major version of this package when releasing, @ChristophWurst @PVince81 thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, should be a major version

@skjnldsv
Copy link
Contributor

What is the status here?
We have 4.0.0 major on the line, in case this needs to get in as a breaking change :)

@Pytal
Copy link
Contributor Author

Pytal commented Nov 1, 2022

What is the status here? We have 4.0.0 major on the line, in case this needs to get in as a breaking change :)

As stated above #577 (comment) I'm fine with bumping the major and releasing so good from my side but I can't approve as I opened this :)

Look good @PVince81 @ChristophWurst?

@Pytal Pytal force-pushed the feat/filter branch 2 times, most recently from f65d2d7 to 466bbd3 Compare November 1, 2022 01:08
Pytal added 2 commits October 31, 2022 18:09
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@skjnldsv skjnldsv merged commit e46f198 into master Nov 2, 2022
@skjnldsv skjnldsv deleted the feat/filter branch November 2, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add filepicker filter function
4 participants