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

refractor(session service) using $state instead of $location #3041

Merged

Conversation

jeremielodi
Copy link
Collaborator

closes #3030

@jniles
Copy link
Collaborator

jniles commented Aug 16, 2018

Looks like the SessionService tests need to be updated before this will pass. Could you take look at them?

@jeremielodi jeremielodi force-pushed the sesion_service_refractor branch 2 times, most recently from ac66844 to b00c07f Compare August 17, 2018 08:28
@jeremielodi jeremielodi force-pushed the sesion_service_refractor branch 4 times, most recently from 332fdc3 to d991d34 Compare August 30, 2018 10:54
Copy link
Collaborator

@jniles jniles left a comment

Choose a reason for hiding this comment

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

Looks good to me!

bors r+

bors bot added a commit that referenced this pull request Aug 30, 2018
3041: refractor(session service) using $state instead of $location r=jniles a=jeremielodi

closes #3030

3094: fix: migrate to utf8mb4 r=jniles a=jniles

This commit migrates the database to UTF8MB4 in preparation for MySQL 8 which defaults to this.  It also produces better results for diverse character sets.

Closes #2989.

**Overview**
The motivation for this Pull Request is two-fold:
 1. Make sure no one had [break the server](https://medium.com/@adamhooper/in-mysql-never-use-utf8-use-utf8mb4-11761243e434) by putting valid characters that [cannot be represented in MySQL's UTF8 character set](https://stackoverflow.com/questions/30074492/what-is-the-difference-between-utf8mb4-and-utf8-charsets-in-mysql#30074553).
 2. Ensure we are set up for future releases of MySQL and future languages by migrating to UTF8MB4.  MySQL 8 will support this out of the box.

And additional benefit continues the work started by @mbayopanda in his work on Travis CI changes in #3061 to document and standardize the character sets and collations in our database.  Previously, we just relied on having "the right set up", with some of our Stored Procedures in the server's default encoding, functions called in the mysqljs's default encoding, etc...  Now, we define at creation time and connection time the character sets and collations we are working with.

**Notes**
I had to [skip one test](https://github.com/IMA-WorldHealth/bhima-2.X/blob/master/test/end-to-end/verificationLinks/verificationLinks.spec.js#L19).  It was the link between debtor groups and patients.  I'm pretty sure this is due to the fact that the order data was inserted in changed somehow.  Either way, the test is non-specific and should be re-written to reference the group by its name.



Co-authored-by: jeremielodi <[email protected]>
Co-authored-by: Jonathan Niles <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 30, 2018

Build failed (retrying...)

bors bot added a commit that referenced this pull request Aug 30, 2018
3041: refractor(session service) using $state instead of $location r=jniles a=jeremielodi

closes #3030

Co-authored-by: jeremielodi <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 30, 2018

Build failed

@jniles
Copy link
Collaborator

jniles commented Aug 30, 2018

@jeremielodi, looks like the most recent changes to the master branch have broken these tests. Can you try to resolve these?

@jeremielodi
Copy link
Collaborator Author

ok, let me give it a try

@jniles
Copy link
Collaborator

jniles commented Sep 3, 2018

bors r+

bors bot added a commit that referenced this pull request Sep 3, 2018
3041: refractor(session service) using $state instead of $location r=jniles a=jeremielodi

closes #3030

Co-authored-by: jeremielodi <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 3, 2018

Build succeeded

@bors bors bot merged commit f670c25 into Third-Culture-Software:master Sep 3, 2018
@jeremielodi jeremielodi deleted the sesion_service_refractor branch October 1, 2021 09:59
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

Successfully merging this pull request may close these issues.

Update SessionService to use $state instead of $location
2 participants