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

Script for fill in Pakiti DB of users from gocDB #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HavrilaJ
Copy link
Contributor

No description provided.


if ($seo === false) {
file_put_contents('php://stderr', "Cannot load list of Site Security Contats from the GOCDB");
$seo_sites = array();
Copy link
Member

Choose a reason for hiding this comment

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

If the file can't be loaded, just issue an error and bail out


if ($ngi_contacts === false) {
file_put_contents('php://stderr', "Cannot load list of NGI Security Officers from the GOCDB");
$ngis = array();
Copy link
Member

Choose a reason for hiding this comment

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

the same as above, i.e. die on errors

print($verbose);
# Get site security contacts
$seo = new DOMDocument();
$seo->load("/tmp/pakiti-seo.xml", LIBXML_NOWARNING | LIBXML_NOERROR);
Copy link
Member

Choose a reason for hiding this comment

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

pass the names of input XML files as command-line parameters

$err = '';
# Get NGI security officers
$ngi_contacts = new DOMDocument();
$ngi_contacts->load("/tmp/pakiti-ngi-so.xml", LIBXML_NOWARNING | LIBXML_NOERROR);
Copy link
Member

Choose a reason for hiding this comment

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

see above

@kouril
Copy link
Member

kouril commented Apr 2, 2019

  • Please extract the API changes to a separate PR (i.e. change to dao/managers)
  • The right location of the script is src/modules/cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants