Code Monkey home page Code Monkey logo

bridgeserver2's Introduction

BridgeServer2

Bridge Server 2.0 running on Spring Boot.

Set-up

In your home directory, add a file BridgeServer2.conf and add any other local overrides.

If you are using a local MySQL instance, it should not have any sql_mode flags set (none are set in our Aurora DB instances in any environment, and some of our SQL depends on this behavior...more recent MySQL installations set a number of these mode flags by default). Verify that no sql_mode values are set by adding a .my.cnf (in your home directory) or my.cnf file (in other directories) based on where your MySQL installation is looking for this file. Here’s a good explanation of how to determine the right location and there may be installed or pre-existing config files that will overwrite your changes if you don’t supercede them in the precedence order MySQL is using to find the file. On Macs for example, /etc/my.cnf is the first place a dmg-installed version of MySQL will look for this file, but it is different if you install MySQL using brew.

The contents should be:

[mysqld]
bind-address = 127.0.0.1
sql-mode =

Then restart your MySQL server.

Build

To run a full build (including compile, unit tests, findbugs, and jacoco test coverage), run:
mvn verify

(A full build takes about 30 seconds on my laptop, from a clean workspace.)

To just run findbugs, run:
mvn compile findbugs:check

To run findbugs and get a friendly GUI to read about the bugs, run:
mvn compile findbugs:findbugs findbugs:gui

To run jacoco coverage reports and checks, run:
mvn test jacoco:report jacoco:check

Jacoco report will be in target/site/jacoco/index.html

Execution

To run this locally, run
mvn spring-boot:run

To run this locally without executing boostrapping framework (which improves start-up time):
mvn spring-boot:run -Dspring.profiles.active=noinit

To debug remotely, run:
mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"

Useful Spring Boot / Maven development resouces:

bridgeserver2's People

Contributors

alxdarksage avatar chuguoxipo avatar dependabot[bot] avatar dephillipsmichael avatar dwaynejengsage avatar imranmaj avatar janaechan avatar jnelsonjava avatar kellyyangsong avatar kss39 avatar liujoshua avatar nategbrown9 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bridgeserver2's Issues

OAuth to Fitbit fails in BioMarin pkYOU Study

Potentially related to the issue that is fixed with PR #295

In BioMarin pkYOU app, when attempting to OAuth to Fitbit during study enrollment, fails with the message:
"Attempting to reauth an account with a password but with no email, phone, or externalId". (screenshot)
Screen Shot 2020-11-19 at 11 58 15 AM

Note that owing to the current complications with building in a simulator, I cannot run the app without a pre-cached User Profile on my device so I do not know the externalID that is being used to generate the error.

To reproduce from API calls instead of the app, the following could be used:
externalID = 9999-0003 (a valid test account, but created with the old BSM externalID creation
fitbit username: [email protected]
fitbit password: sageBionetworksT3$t

Priority level: Medium/low. As the pkYOU study is currently paused for new enrollments, this mechanism is not likely to be called because it is only applicable during enrollment. However, if someone gets logged out for any reason, their data pull would be failing silently to the user. In looking at the data coming through, this does not appear to be affecting active users that are only getting their refresh token. With all that being said, if the PR #295 fix is able to be cross-applied to the OAuth mechanism, I want to surface it here so that this doesn't get lost in the shuffle once enrollment becomes unpaused.

@alxdarksage @DwayneJengSage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.