-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
cfs:gridfs deprecated #3272
Comments
Do you mean connecting to some specific remote MongoDB version? |
Do you mean this? #2977 |
Maybe drop all those unmaintained packages and implement:
@xet7 With a little guidance, I might give it a try?
Yes it's mongo 4.2.6 — I'm using the mongodb operator which only supports SCRAM - which is only SCARM-SHA256 in case of 4.2.6. |
I had this error, but it seemed it was a mis-configuration in the URI, the persistent error (which might also be behind that reported issue) is that the auth methods don't match. |
Is Meteor-Files same or different than ostrio-files? #3268 (comment) |
It is the same! Thanks for the link — I didn't associate with your comment. Still their recommendation about mongo-native GridFS-Bucket-Integration seems highly worth exploring. |
That ostrio-files changes are not merged yet, because those did not build yet on arm64 and s390x. But maybe that could be made working some way too. |
@urakagi and @blaggacao could look together how to get those ostrio-files changes as pull request to newest Wekan |
So you did do some work on https://github.com/wekan/wekan/tree/feature-ostrio-files — then you stopped because it didn't build — now it needs rebasing + fixing those build? +- right? |
|
Ok, I'll hgive it a try to refactor the use of legacy packages towards |
Those by urakagi |
And some could be at #3217 |
Idea being, that migrating files from database to files or elsewhere, without overwriting duplicate files names, could somehow be made possible. |
Ok As far as I can judge and see some work is also in master: Inline with https://github.com/VeliovGroup/Meteor-Files/wiki/GridFS-Bucket-Integration Some work not directly related with this change is pending in #3217 Currently there are no commits in |
Wow, that wiki page starts with |
So this is from where it should start: https://github.com/wekan/wekan/pull/3273/files — now, lets make it work again 😜 |
@xet7 might I disregard all ocurrences in |
You can delete that directory |
@xet7 It looks like
|
Are ES6 Imports ok? |
About ES6, I think so ? https://github.com/wekan/wekan/blob/master/.eslintrc.json#L9 |
Currently attachments are stored in database, and most have automated database backups |
So all file handles should become |
But in your code do not use Javascript arrow functions, because Python-based API documentation generation code does not like those arrow functions code. |
Well, if there is Javascript arrow function, then Python code does not show any error, and just leaves out generating some part of documentation at https://wekan.github.io/api/ |
Even better those factory and generator functions do not need to be exposed, I'll stow them away in a helper file in |
For serverside code, you could add check Checking for logged in user with |
Other roles like |
BTW, for example when I added feature Assignee field like Jira, there this way I did prevent more than one assignee. |
Can local fs storage support be dropped? What is it good for? Would some follow up PR implementing feature par export from gridfs as replacement solve the use case? I'd leaves to drop it, since it recreates the api and makes the code brittle to changes. there doesn't seem to be ootb support on |
I think currently local fs storage does not work well enough. There is settings for it, but it depends does link to file really point to database or filesystem, is everything visible: |
There is however
I'll drop it in the meantime, but maybe once |
If files are moved outside of database, then it's about how well linking to those files really works? Do those files have one-time view keys, are they at intranet, require Google login, or something else? Because private board attachments are not currently visible to non-logged in users, and it should still be that way. |
For such use cases https://github.com/VeliovGroup/Meteor-Files/wiki/AWS-S3-Integration seems like the right answer. |
Yes. Currently it's first that with ostrio-files using attachments at database does still work, and then see does using ostrio-files solve your using remote database issue. |
Why is file type not preserved on non-image attachments?
Wouldn't it make more sense to preserve metadata? |
Yes. |
Currently problem is, that PDF files open also in slideshow, but then show nothing, because there is no PDF viewer setup. Slideshow only shows JPG/JPEG/PNG/GIF bitmap image files, other file types should be excluded from slideshow, when those filetypes do not have a viewer that would work. |
Sounds like a fix is appropriate over there at the slideshow implementation. We should take note to open a follow-up issue on this aspect of the refactoring. |
That AWS S3 integration seems to have some image processing Lambda possibilities for creating thumbnails: Currently Wekan has some image resize code: But currently that is optional, so all boards do load big images from big boards to browser and that slows down Wekan, because Wekan does not have thumbnails in general use. |
Problem
It looks like the new implementation of allow / deny is without effects on on server side callers, was this the case before, too? |
Occurrences
|
@xet7 After kind of figuring out how this is supposed to work (took quite some time), I didn't find where to which object the e4c28c3#diff-e37acd9674ee4d6c1221038429907195R107-R108 What was |
Avatars are uploaded to database at Wekan user settings: |
UserAvatar form here https://github.com/wekan/wekan/tree/master/client/components/users |
In future, avatar can also be link to avatar image elsewhere, like at LDAP, Google Auth, Gravatar etc with image URL that is get in response to login to some auth system. In general, avatar URL points to database or elsewhere. |
The PR is +- reviewable, now. I'm going to bed, now. Hope to catch up tomorrow with your comments. Thanks for this guidance. Felt like peer programming! Super nice! Ps: I don't want to login to |
Thanks 👍 I just woke up ☕ |
Well that deepcode sometime suggested Javascript arrow functions so it is not always right. |
just 2cents reg. "image processing Lambda possibilities for creating thumbnails": maybe approach with smart "resize-on-pull" proxy is the way to go, what do you think? i.e. just adding settings-url like here: https://docs.mattermost.com/administration/image-proxy.html |
Wekan already has some code to make thumbnails. Wekan is used at private LANs that are not connected to Internet, so it's not possible to use Lambda there. Also, I think there is no need for separate proxy. |
Issue
https://atmospherejs.com/cfs/gridfs
this blocks #3262 since because of an old mongodb version used as transitive dependency, it's impossible to connect to a remote mongo service (using some supported auth mecanism)
Despite #3270
What can we do?
In fact it looks like none of the
cfs
's packages is maintained any longer: https://atmospherejs.com/cfsAffecting:
wekan/.meteor/packages
Line 20 in 5870d38
wekan/.meteor/packages
Line 79 in 5870d38
wekan/.meteor/packages
Line 97 in 5870d38
The text was updated successfully, but these errors were encountered: