-
Notifications
You must be signed in to change notification settings - Fork 126
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
Modifying pageflow for inclusion on complex existing apps #636
Comments
Happy to hear that you like Pageflow! Let me address the mentioned issues one by one:
None of these issues is really pressing for us at the moment, so I don't expect we will be doing much work in any of these areas in the near future. Still I'd be happy to provide pointers and review code if you have time to work on some of these points. I think almost all could lead to major improvements of the code base. |
Hi @tf, Thanks - we are not necessarily asking for you assistance in the modifications, we just don't want stub any toes and make sure the work we do is inline with your current work/architectural goals. Would you like on MASSIVE pull request or each one as a smaller component? For example, we have already completed the work required to change the devise model as well as a custom mount point (which required a lot of updates to the JS code). I am feeling like it would be more manageable if we submitted PRs for each section BUT we have already completed several of the modifications and I would hate to try to issolate each of them. If you are curious, our current modified fork is here: https://github.com/rg34/pageflow Just let us know what works best for you and we'll be good team players :) Thanks again for all the work you all have put into pageflow so far! |
I definitely prefer individual PRs for the different aspects (mount point, user model etc.). As chance would have it, we merged a quite extensive change to the permissions system today. So I expect this to cause some conflicts with the work you have done. Some initial thoughts after skimming through the commit:
I hope this makes some sense. Maybe I'm not yet understanding the use case correctly, especially regarding the relation between the Best |
Hi @DaKaZ, this issue has not seen any activity in quite some time. Is this still something you are interested in working on? |
Sorry, it because too hard to try and make a PR from our work, you can close this. |
Hello pageflow team!
We stumbled upon Pageflow a few weeks ago and fell in love :) So, like all good developers we went to run the Pageflow engine on our Rails 4.2.6 app. Its a pretty good size rails backend app with 3 years of history. We have encountered a number of items which need to be discussed with the core developers, that is the purpose of this issue so that we can candidly discuss how to best proceed so that the PR works for everyone.
As an example of these issues, we have two devise models: Users (our customers) and AdminUsers (our active admin administrators). Thus... we have set out to create a pull request that will fix the issues we have been discovering while integrating Pageflow with our app so that others don't face the same problem.
Currently, one of the major issues we are having is with paperclip integration and S3.
First, overriding the paperclip configuration specific to Pageflow feels like a violation of what we SHOULD be doing. It seems to us the Pageflow should operate with any file storage that paperclip provides, be that S3 or the local file system. In looking into this deeper, we found an even larger issue: the background processing of files breaks when the background processor is not on the local machine. For example, we have 2 front end application boxes and 2 helper boxes which run delayed_job. The front end boxes do not run delayed_job. In addition, we think that pageflow should be using ActiveJob and not require resque so that existing apps can use whatever job processor they need. We have not inspected the code enough to know if resque is the processor that will work, but if it is we could use
self.queue_adapter = :resque
to force resque for the pre-processing jobs.So the two questions at hand are:
Is there any reason why we should override paperclip's configuration in the pageflow initializer and not just use the system default?
Is there a hard requirement for resque as the background processor or should we allow for any background process (note: we'll still have to ensure the job execution ON the machine that accepted the upload or that the processing machine has access to that file).
We look forward to your thoughts.
The text was updated successfully, but these errors were encountered: