Skip to content

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
Member

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.

@ag4ums ag4ums force-pushed the contrib/agent-keyword branch from 00e7f97 to 115727b Compare May 25, 2018 09:58
@ghost ghost assigned ag4ums May 25, 2018
@ag4ums ag4ums removed the WIP label May 25, 2018
@shaheemazmalmmd
Copy link
Member

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
@ag4ums ag4ums force-pushed the contrib/agent-keyword branch from 115727b to 16ba498 Compare May 31, 2018 08:49
@ghost ghost assigned ag4ums May 31, 2018
@shaheemazmalmmd
Copy link
Member

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
@ag4ums ag4ums force-pushed the contrib/agent-keyword branch from 16ba498 to 7a0c3ed Compare July 10, 2018 13:22
@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

@ag4ums ag4ums force-pushed the contrib/agent-keyword branch from 7a0c3ed to 8379eac Compare July 30, 2018 07:18
@ghost ghost added the needs code review label Jul 30, 2018
@@ -0,0 +1,107 @@
<?php
/***********************************************************
* Copyright (C) 2010-2014 Hewlett-Packard Development Company, L.P.
Copy link
Member

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

@ag4ums ag4ums force-pushed the contrib/agent-keyword branch from 8379eac to ab30fbf Compare July 30, 2018 10:11
@shaheemazmalmmd shaheemazmalmmd merged commit cfed78b into master Jul 31, 2018
@ghost ghost removed the needs code review label Jul 31, 2018
{
$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.

4 participants