Skip to content

Releases: unee-t/env

Hot fix - create type `EnvironmentId` to to allow export

06 Feb 11:43
Compare
Choose a tag to compare
  • create an exportable type EnvironmentId to avoid bug
  • Upgrade the Go modules this package depends on

Use Capital letter in the indentifier so it can be exported

06 Feb 11:29
Compare
Choose a tag to compare

Important GOTCHA:

An identifier may be exported to permit access to it from another package. An identifier is exported if both:

  • the first character of the identifier's name is a Unicode upper case letter (Unicode class "Lu"); and
  • the identifier is declared in the package block or it is a field name or method name.

See this Stackoverflow post

Actual v1.0.0 release

06 Feb 11:12
94bc7b7
Compare
Choose a tag to compare

v1.0.0 was released before merging (Duh!)

Use more descriptive names - Add a new function `NewDbConnexion`

06 Feb 03:45
69d7310
Compare
Choose a tag to compare

WARNING: This update will break any repo that was depending on the previous version of this repo (version 0.x.x and earlier).

  • Names should be descriptive and specific: replace generic or non-specific names.
  • Add a function NewDbConnexion to simplify how we generate string to connect to a database
  • Use variables STAGE in the Udomain function

Use AWS parameter store when deployed

05 Feb 06:21
69d7310
Compare
Choose a tag to compare

Bug Fix:

When Lambda has been deployed it can only get the variables from the AWS Parameter store.

This makes sure that we get these variables when we need these

Misc:

  • Remove the function NewBzDbConnexion for now this will be implemented at a later stage

Add new function `NewBzDbConnexion`

04 Feb 14:08
f4814bb
Compare
Choose a tag to compare

We have several repo that use a similar function to get the connection to the BZ database for a given Unee-T installation.

We are moving this in one central place.
We create a new function NewBzDbConnexion that can be used as a drop in replacement

More descriptive log messages

04 Feb 07:58
Compare
Choose a tag to compare

Include the name of the function in the Log message so we can debug more easily

Upgrade to Go v1.13

04 Feb 07:31
c618343
Compare
Choose a tag to compare
  • Upgrade to Go v1.13
  • Improve documentation and comments
  • Rename function New to NewConfig: Names should always be descriptive whenever possible.
  • Get all the improvements made when debugging unee-t/unit#16 into this repo.

Force use of Go v0.11.x

02 Feb 23:09
Compare
Choose a tag to compare

Go V0.12 can create panic when tests are run <-- forcing deployment to use Go v0.11.

Remove GO112MODULE

02 Feb 22:50
Compare
Choose a tag to compare

The reference to GO112MODULE is creating 2 builds, removing it.