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

Fixed the way more-info urls are returned when listing all libraries #61

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fpapadopou
Copy link
Contributor

ChangeLog

  • Updated the part of the getExternalLibrariesList method which returns
    the 'more info' url for each library. The url would only be returned
    if a Github repo and owner were stored in the database under this
    library.
  • Added new fixture data for the tests of this bugfix.
  • Added functional tests.

Merge Process

Nothing special, just pull the code.

Testing Steps

Head over to codebender's libraries and look for SparkFunBME280 library. More info button shouldn't be available under the /libraries page or under the library view page. After this change the More info button should show up in both places.

What's the deal: This library is stored as an external library on eratosthenes. When adding an external library to eratosthenes from Github, the respective github-owner and github-repo columns are filled in the database. Although the SparkFunBME280 library is a Github library, we had to make some changes to its file structure and upload it to eratosthenes using a zip file. We did however add a more-info-url which points to the Github library. Due to the bug fixed in this PR, the Urls would never be returned, unless the github-owner and github-repo were filled in eratosthenes' database.

- Updated the part of the getExternalLibrariesList method which returns
  the 'more info' url for each library. The url would only be returned
  if a Github repo and owner were stored in the database under this
  library.
- Added new fixture data for the tests of this bugfix.
- Added functional tests.
@fpapadopou fpapadopou changed the title Fixed the way Github urls are returned when listing all libraries Fixed the way more-info urls are returned when listing all libraries Mar 15, 2016
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 40cfb47 on github-url-fix into * on master*.

@Konstantinacc
Copy link

Tested and works:

Libraries live:
libraries_live

Libraries staging:
libraries_staging

Library live:
library_live

Library staging:
library_staging

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

Successfully merging this pull request may close these issues.

4 participants