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

feat(keyword-agent) : new-keyword-agent #1107

Merged
merged 1 commit into from Jul 31, 2018

Conversation

ag4ums
Copy link
Contributor

@ag4ums ag4ums commented May 22, 2018

No description provided.

@@ -1,6 +1,6 @@
/*
* Copyright (C) 2014, Siemens AG
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change the copyrights for all files.

@ghost ghost assigned ag4ums May 25, 2018
@ag4ums ag4ums removed the WIP label May 25, 2018
@shaheemazmalmmd
Copy link
Contributor

Please change the commit message according to commit conventions.

@ag4ums ag4ums changed the title new-keyword-agent feat(keyword-agent) : new-keyword-agent May 28, 2018
@ghost ghost assigned ag4ums May 31, 2018
@shaheemazmalmmd
Copy link
Contributor

Please add the below files to git ignore

  • src/copyright/VERSION-keyword
  • src/copyright/agent/keyword

@shaheemazmalmmd shaheemazmalmmd removed their assignment Jul 4, 2018
@mcjaeger mcjaeger added the WIP label Jul 10, 2018
@ghost ghost removed the WIP label Jul 10, 2018
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Please add the primary key and foreign key constrains on keyword and keyword_decision tables.

# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
#
# Description: this file holds the regex configurations for the IP agent
Copy link
Member

Choose a reason for hiding this comment

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

Please change to:
Description: This file holds the regex configurations for the Keyword agent

@@ -0,0 +1,107 @@
<?php
/***********************************************************
* Copyright (C) 2010-2014 Hewlett-Packard Development Company, L.P.
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can be removed

@shaheemazmalmmd shaheemazmalmmd merged commit cfed78b into master Jul 31, 2018
@ghost ghost removed the needs code review label Jul 31, 2018
@@ -338,7 +338,7 @@ public function getAllEntries($tableName, $uploadId, $uploadTreeTableName, $type
public function getDecisions($tableName,$pfileId)
{
$statementName = __METHOD__.$tableName;
$sql = "SELECT * FROM $tableName where pfile_fk = $1 and is_enabled order by copyright_decision_pk desc";
$sql = "SELECT * FROM $tableName where pfile_fk = $1 and is_enabled order by keyword_decision_pk desc";
Copy link
Member

@GMishx GMishx Aug 29, 2018

Choose a reason for hiding this comment

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

@ag4ums
The change is breaking ECC view:

Warning: pg_prepare(): Query failed: ERROR: column "ecc_decision_pk" does not exist LINE 1: ...ision where pfile_fk = $1 and is_enabled order by ecc_decisi... ^ in /usr/local/share/fossology/lib/php/Db/Driver/Postgres.php on line 62

Fatal error: Uncaught Fossology\Lib\Exception:
error executing: SELECT * FROM ecc_decision where pfile_fk = $1 and is_enabled order by ecc_decision_pk desc -- Fossology\Lib\Dao\CopyrightDao::getDecisionsecc_decision
ERROR: column "ecc_decision_pk" does not exist LINE 1: ...ision where pfile_fk = $1 and is_enabled order by ecc_decisi... ^ in /usr/local/share/fossology/lib/php/Db/DbManager.php:140 Stack trace:
#0 /usr/local/share/fossology/lib/php/Db/ModernDbManager.php(51): Fossology\Lib\Db\DbManager->checkResult(false, 'SELECT * FROM e...')
#1 /usr/local/share/fossology/lib/php/Db/DbManager.php(183): Fossology\Lib\Db\ModernDbManager->prepare('Fossology\\Lib\\D...', 'SELECT * FROM e...')
#2 /usr/local/share/fossology/lib/php/Dao/CopyrightDao.php(345): Fossology\Lib\Db\DbManager->getRows('SELECT * FROM e...', Array, 'Fossology\\Lib\\D...')
#3 /usr/local/share/fossology/copyright/ui/Xpview.php(164): Fossology\Lib\Dao\CopyrightDao->getDecisions('ecc_decision', '16 in /usr/local/share/fossology/lib/php/Db/DbManager.php on line 140

Copy link
Member

Choose a reason for hiding this comment

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

Created issue #1191

@GMishx GMishx deleted the contrib/agent-keyword branch August 29, 2018 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants