Help, if it is possible, to check missed doctrine migrations (Symfony 3) via bash script (for apache ant).
I've try to find some solutions, but nothing interesting, maybe somebody already has the same problem.
Thanks.
There is no solution.
The best way is to make a good map by entities
Related
Usingbandit for checking the code for vulnerability issues.
https://docs.openstack.org/bandit/1.4.0/plugins/start_process_with_a_shell.html
How to go about resolving this? Is there an alternative to using commands library( i.e commands.getoutput)? Please advise.
( python 2.7)
New to this security field, kindly update the tags if these aren't appropriate.
Here it says, https://github.com/openstack/bandit/blob/master/bandit/plugins/injection_shell.py#L62
commands.getoutput is vulnerable, but doesn't suggest a replacement! Ugh!
Could sombebody please recommend a solution to this. Thank you.
The only solution I have found is , marking tests which you know for sure to be false flags with the --no-sec flag. This will omit that particular test from bandit's checks/
I've got all these great new plugins enabled, and I can enable them on any given project.
However, I don't see a way to add/remove them from many projects at once.
Perhaps I need a module management plugin? ;-)
In my case Redmine 3.1.0 and MySQL is used as DB server. I think, you'll get the main idea in case of other confuguration.
DELETE FROM `enabled_modules` WHERE `name` = 'module_name_here';
INSERT INTO `enabled_modules`
(`project_id`, `name`)
SELECT
`id`, 'module_name_here'
FROM
`projects`
You can activate module for one project to discover its name from enabled_modules. Or you can find it in plugin sources, it should look like 'project_module :module_name_here'
Please, don't do this if you do not completely understand, what is this answer about!
PS: Yes, I know - it is a dirty solution, but it's fast and easy enough for operation which is neccesary once a year or less.
It's been a while and I reckon the OP has since solved his problem. In case someone else has the same problem:
We also had to activate a few modules in all projects and wrote a small script to do it for us:
https://github.com/EugenMayer/enable_chiliproject_modules
Edit:
This was created and tested for the Redmine fork "Chiliproject" but should work without changes in Redmine.
how can I enable it many projects at once?
You can't - at least not by using the UI.
I am in search for a extension that is similar to django_-volution.
The requirement is to alter the database, whitout deleting the wohle data.
I don't know, but for me, this is something so ordinary - doesn't django have a built-in function like that?
django_evolution is still in working progress and has some bugs, so i want something that is stable and maybe has more options. Especially to write own mutations seems a little bit complex for me.
Does anybody know something similar?
Thanks for all answers
You're looking for South. It's currently the de-facto schema and data migration plugin for Django. I believe there have been talks about adding it to the core of Django. It has a bit of a learning curve but you seriously want to take the time and learn it.
You'd like something to perform 'migrations' a la rails, correct? The best known and most stable project is South, as far as I know. It offers "intelligent schema and data migrations for Django projects".
http://south.aeracode.org/
Personally, I just alter my model, and make the changes through the database command line client.
I am building out a solr instance for django, but the example provided from solr is super verbose, with many things that are not relevant to haystack. A sample with spelling suggestions, morelikethis, and faceting, without the extra stuff that haystack doesn't use would go a long way to helping me understand what is needed and what isn't.
I use this one. I works and fits my needs, except for morelikethis that wasn't that good and I don't use faceting.
You should not use an "out of the box" solr config. You should understand your search requirements and write a schema and config that matches.
This is one of the drawbacks of the way people use haystack. They rely on the default behaviour which is very rarely the optimum behaviour for solr.
You shouldn't need to write an xml file - one of the benefits of Haystack is that it does that for you. Once your searchindex classes are defined, just run ./manage.py build_solr_schema and copy the resulting xml to your solrconfig file.
I use Vim as primary IDE for programming, with some plugins i have a good environment but for a single point: debugging.
I have recompiled Vim to use vimgdb, and it works, but the problem is that i need to attach to a process started by a root user so i have to use sudo to do it....
How can i do this with vimgdb?
Thanks in advance.
Well, the most obvious way - but probably not really what you're looking for - would be to run vim as root to begin with. Then you wouldn't have to worry about it switching to the root user for debugging. It would already be there.
Since I haven't used the vimgdb yet, I don't have the answer for your question. But, I guess you might be able to find a solution by referring to the implementation of SudoEdit plugin which handles the issue of reading/writing a file using the sudo command.
http://www.vim.org/scripts/script.php?script_id=2709
Hope that helps.