Comments (15)
Thinking of a Processing class to move out logic from the consumer
from composer-service.
Yes a processor class and also multiple tasks objects injected via DIC via composition.
In this way all tasks would be easily tested...
from composer-service.
agree, not sure what do you mean by task ?
from composer-service.
he means specific process command or such
from composer-service.
If the objective is clean-up a little bit and add a test for each step,
creating a similar class with a big process function is not the best.
Another solution is create a Processing class with a function for each step,
but would be difficult to have unit tests (or we test private functions that is not so good), so we'd have to add functional testing.
Another way of doing it and maybe is over engineered:
create multiple steps (or task), each step does only one thing.
New Processing
- argument:
- DumpFileStep
- ComposerInstallStep
- CheckVulnerabilitiesStep
- ServeVendorStep
The steps are classes that implements an interface with a method execute
(or something like that).
Other ideas?
Other smells that I see: Filesystem and SecurityChecker are not injected.
from composer-service.
👍 feel free if you want to contribute, I'd be glad :)
from composer-service.
I'm on holiday now :) if this will be not closed when I'll come back on mid-jan I'll look into it 👍
from composer-service.
@liuggio non sapevo italiano ha preso Vacanze ❗
from composer-service.
@liuggio thanks, have a great time and happy new year ;)
from composer-service.
Can I take a shot at this please?
I like this project, for now I just contributed a few lines on projects but I'd like to be more involved in some stuff.
There is a good chance that I mess this up, but eh, I have to start somewhere (plus maybe @liuggio can point me in the right direction ?) :)
from composer-service.
@youbs feel free to contribute, take a stab
from composer-service.
@youbs you are more than welcome, don't worry, we'll help you
from composer-service.
👍 @youbs let us know
from composer-service.
Hi,
I started to work on this and went with @liuggio's idea with the steps.
I ran into an issue concerning the generated temp path (with the uniqid). I'd need to access it from several different steps. Anyone got an idea how to handle that?
(I can open a WIP PR if needed)
from composer-service.
please do @youbs
from composer-service.
Related Issues (20)
- let's remove the cache and catch some errors HOT 3
- please remove wiki tab HOT 1
- install extensions on the server HOT 2
- [Insight] Projects must not depend on dependencies with known security issues
- [Insight] The Symfony version should be maintained
- project creation support.
- 502 :( HOT 1
- [Insight] A Symfony2 application should be bootable HOT 3
- composer.borreli.com is OffLine HOT 8
- Composer script execute support? HOT 4
- [Insight] The composer.json file should not raise warnings - in composer.json, line 0
- pusher trigger needs array as channel
- [Insight] Projects must not depend on dependencies with known security issues
- site is down HOT 3
- dockerize to run on aws on demand
- Status page linked from the footer show cloudflare errors
- Website is down :( HOT 1
- Consider using queue interprop as abstraction for queues
- Overall picture HOT 1
- Add dockerfile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composer-service.