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

make logo for orcid #49

Closed
rija opened this issue Jan 10, 2018 · 0 comments
Closed

make logo for orcid #49

rija opened this issue Jan 10, 2018 · 0 comments

Comments

@rija
Copy link
Owner

rija commented Jan 10, 2018

No description provided.

@rija rija added this to the GigaDB-CCQ-affiliate-login-64 milestone Jan 10, 2018
@rija rija closed this as completed Jan 10, 2018
@rija rija removed the in progress label Jan 10, 2018
rija pushed a commit that referenced this issue Mar 21, 2018
Second draft of acceptance tests for this feature. Added error paths, removed scenario that did test new path,  and added scenario about bi-directionality of linking.
Will send this one to Chris for review.
rija pushed a commit that referenced this issue Mar 22, 2018
rija pushed a commit that referenced this issue Mar 23, 2018
…rge now show the detailed names and ORCID id
rija pushed a commit that referenced this issue Mar 27, 2018
…I've added additional scenarios to cover the inferred linked authors, the unmerge action becoming the removal of an author from the graph.
rija pushed a commit that referenced this issue Mar 27, 2018
…I've added additional scenarios to cover the inferred linked authors, the unmerge action becoming the removal of an author from the graph. Missed one scenario.
rija pushed a commit that referenced this issue Mar 30, 2018
added a method to the Author.php model class to return an array of the ids of all authors identical to the model
rija pushed a commit that referenced this issue Mar 30, 2018
the method for merging authors can now merge one author with a graph of identical authors
rija pushed a commit that referenced this issue Apr 1, 2018
Can get graph of identical authors and can merge author into author, author into graph.
rija pushed a commit that referenced this issue Apr 1, 2018
make sure merge doesn't proceed if the author merging is already in the graph to merge with.
rija pushed a commit that referenced this issue Apr 1, 2018
…er graph.

So if we have an author we want to merge with an other author and both are distinctly connected to other authors
the two sets of identical authors will be merged into one set of identical author.
rija pushed a commit that referenced this issue Apr 1, 2018
…the following test error:

CDbException: Column name must be either a string or an array.

Which indicates that a database table is missing a primary key. In this case, it was author_rel that didn't have a primary key index set up in postgresql.
rija pushed a commit that referenced this issue Apr 1, 2018
… unMerge method

the unMerge method will remove an author from the graph by removing all the outward edges from itself.

I also stumbled into the following errors when writing tests that create or delete an AuthorRel object in database:

CDbException: CDbCommand failed to execute the SQL statement: SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "author_rel_pkey"
DETAIL:  Key (id)=(1) already exists.

This is because the data fixtures for author_rel are loaded before the tests are run and for some reason either CDbTestCase or CdbFixtureManager set db connection are unable to auto-increment from the last id used in the fixture.

I found a workaround from this issue (which is for a different context/framework version but same problem):
yiisoft/yii2#8298

Didn't put it in a setUp function as it makes the other tests fail.
rija pushed a commit that referenced this issue Apr 1, 2018
Second draft of acceptance tests for this feature. Added error paths, removed scenario that did test new path,  and added scenario about bi-directionality of linking.
Will send this one to Chris for review.
rija pushed a commit that referenced this issue Apr 1, 2018
rija pushed a commit that referenced this issue Apr 1, 2018
…rge now show the detailed names and ORCID id
rija pushed a commit that referenced this issue Apr 1, 2018
…I've added additional scenarios to cover the inferred linked authors, the unmerge action becoming the removal of an author from the graph.
rija pushed a commit that referenced this issue Apr 1, 2018
…I've added additional scenarios to cover the inferred linked authors, the unmerge action becoming the removal of an author from the graph. Missed one scenario.
rija pushed a commit that referenced this issue Apr 1, 2018
added a method to the Author.php model class to return an array of the ids of all authors identical to the model
rija pushed a commit that referenced this issue Apr 1, 2018
the method for merging authors can now merge one author with a graph of identical authors
rija pushed a commit that referenced this issue Apr 1, 2018
Can get graph of identical authors and can merge author into author, author into graph.
rija pushed a commit that referenced this issue Apr 1, 2018
make sure merge doesn't proceed if the author merging is already in the graph to merge with.
rija pushed a commit that referenced this issue Apr 1, 2018
…er graph.

So if we have an author we want to merge with an other author and both are distinctly connected to other authors
the two sets of identical authors will be merged into one set of identical author.
rija pushed a commit that referenced this issue Apr 1, 2018
…the following test error:

CDbException: Column name must be either a string or an array.

Which indicates that a database table is missing a primary key. In this case, it was author_rel that didn't have a primary key index set up in postgresql.
rija pushed a commit that referenced this issue Apr 1, 2018
… unMerge method

the unMerge method will remove an author from the graph by removing all the outward edges from itself.

I also stumbled into the following errors when writing tests that create or delete an AuthorRel object in database:

CDbException: CDbCommand failed to execute the SQL statement: SQLSTATE[23505]: Unique violation: 7 ERROR:  duplicate key value violates unique constraint "author_rel_pkey"
DETAIL:  Key (id)=(1) already exists.

This is because the data fixtures for author_rel are loaded before the tests are run and for some reason either CDbTestCase or CdbFixtureManager set db connection are unable to auto-increment from the last id used in the fixture.

I found a workaround from this issue (which is for a different context/framework version but same problem):
yiisoft/yii2#8298

Didn't put it in a setUp function as it makes the other tests fail.
rija pushed a commit that referenced this issue Apr 1, 2018
rija pushed a commit that referenced this issue Apr 4, 2018
…g authors (#49)

also added the corresponding target action in the controller.
rija pushed a commit that referenced this issue Apr 4, 2018
Created a Bootstrap modal (whose dimension can be better controlled than Jquery-UI/CJuiDialog dialog) for the pop up box
Displayed the details of the two author to merge in the pop up was tricky as the details for the the author to merge with
is only known by Javascript, php doesn't have access to it yet, while the details for the author we want to merge come from php
I used the 'rowHtmlOptionsExpression' of CGridView to inline a an author's details as data-attributes to the <tr>
When a row is clicked, the open_control javascript that manage the dialog copies the data attributes to the comparison table.

To add the server side functionality fo merging the authors, I added an mergeAuthors action in the AdminAuthorController
that calls a merging method on the Author model class.

The base url is passed on to Javascript code using registerScript at the top of the admin page. It's cleaner than having all javascript
functions to do their own thing. At the moment only merge_authors() javascript functions use it. but will refactor the other function later.

upon merging success, a flash message is displayed on the admin author view.
rija pushed a commit that referenced this issue Apr 4, 2018
… them to mark them as being the same author.

There is already an "IsIdenticalTo" relationship in the database I can use, so no need to create a new one.
rija pushed a commit that referenced this issue Apr 4, 2018
…ging dialog box (#49)

because we use a Bootstrap modal that's invisible by default, the text we won't to match is not seen by Behat, unless we toggle the modal
by injecting javascript into the Webdriver browser.
rija pushed a commit that referenced this issue Apr 4, 2018
…hat tells the admin when the author merging (#49) will actually merge two graphs.
rija pushed a commit that referenced this issue Apr 4, 2018
…rs (#49)

This will be used in the web frontend on the author merging dialog to show user existing graph(s) before he/she proceed with the merging.
rija pushed a commit that referenced this issue Apr 4, 2018
in the comparison table showing the details of the two authors, the admin can now see the graphs of
identical authors they each has already been merged with.

This required a new action in adminAuthor controller to return through ajax request the display names of the graph for the target author if it exists.
rija pushed a commit that referenced this issue Apr 5, 2018
forbid merging same db record with self
rija pushed a commit that referenced this issue Apr 5, 2018
like merging authors already in the same graph.
rija pushed a commit that referenced this issue Apr 5, 2018
…f identical authors

on the author view and on edit form, if an author is in a graph of identical authors, the graph is displayed with details of each authors.
rija pushed a commit that referenced this issue Apr 5, 2018
rija pushed a commit that referenced this issue Apr 6, 2018
… for #60 (showing datasets of linked author on user profile)

Added a new method to the User model class to access the linked author.
Fixed the schema migration for the author_rel table for syntax error.
Updated the production like database dump (production_like.pgdmp) use for acceptance testing #60  with author_rel
Update UserController to fetch the linked author, and then its graph of identical authors and collect datasets id for all of them
rija pushed a commit that referenced this issue Apr 6, 2018
… for #60 (showing datasets of linked author on user profile)

ensure there is no workflow conflict between merging authors and linking an author to an user (when on the admin author table)
rija pushed a commit that referenced this issue Apr 6, 2018
rija pushed a commit that referenced this issue Apr 6, 2018
…xed bug

the bug was that the Unmerge button shows even when there is no identical authors for this author
rija pushed a commit that referenced this issue Apr 7, 2018
the same details about the selected author than in the dialog box for merging two authors (#49)
rija pushed a commit that referenced this issue Apr 9, 2018
…o authors (#49) and for attaching user to author (#56)

declare js variables and set to null before using php to conditionally (so sometimes we get undef) assign values to them
replace js includes instruction with indexOf which is more backward compatible (the includes instruction crashes with phantomjs)
removed a redundant var keywords in open_controls function.
rija pushed a commit that referenced this issue Apr 9, 2018
…ure for issue #81 that keeps crashing since adding the feature for #49
rija pushed a commit that referenced this issue May 19, 2018
Work related to Author workflow( #49, #56, #57, and #60)
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

No branches or pull requests

1 participant