Skip to content

Commit

Permalink
Merge pull request #10 from istresearch/develop into develop
Browse files Browse the repository at this point in the history
upstream merge with v163
  • Loading branch information
baracudda committed Jun 27, 2023
2 parents 992ea22 + ac1982f commit bd24c8c
Show file tree
Hide file tree
Showing 396 changed files with 17,048 additions and 8,895 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
sudo apt -y update && sudo apt -y install pandoc gettext
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "Set up Go"
uses: actions/setup-go@v3
Expand All @@ -34,6 +36,7 @@ jobs:
TEST_NAME: "Unit Tests"
run: |-
set +e
set -o pipefail
go test ./... 2>&1 | tee test-results.txt
set -e
S=$? #non-0 means error
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build app
name: tag release

on:
push:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/util-tag-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Create version tag"

on: [workflow_dispatch]

jobs:
tag-branch:
runs-on: ubuntu-latest
environment: default
steps:
- uses: actions/checkout@v3
with:
ref: ${{ env.GITHUB_REF }}
fetch-depth: 0

- name: "Create Version Tag"
id: version_cfg
# note: Go lang requires tag format: v0.12.3-4
# see: https://stackoverflow.com/questions/62140832/why-golang-packages-have-to-be-v0-or-v1-and-not-v2020
run: |-
VER_BUILD=$(date +%H%M)
VERSION_NUM="0.$(date +%y)$(date +%m).$(date +%d)-${VER_BUILD:0:3}"
echo "VERSION_NUM=${VERSION_NUM}" >> $GITHUB_OUTPUT
- name: "Tag branch"
run: |-
TAG2USE=v${{ steps.version_cfg.outputs.VERSION_NUM }}
git tag ${TAG2USE}
git push origin ${TAG2USE}
echo "::notice::Pushed tag ${TAG2USE} to repo branch ${{ env.GITHUB_REF }}"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
*.a
*.so
*.pyc
.idea

# Folders
_obj
_test
_*

# Architecture specific extensions/prefixes
*.[568vq]
Expand All @@ -30,9 +32,9 @@ debug
.DS_Store
/docs

deploy
fabric
fabfile.*
fabconfig.*

antlr/.antlr
.idea
318 changes: 318 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,321 @@
v0.163.0
----------
* Always truncate URLs in HTTP logs to 2048 chars

v0.162.1
----------
* Support simplifying of queries than can't be parsed but can be constructed

v0.162.0
----------
* Provide API for building contact queries programatically

v0.161.2
----------
* Update ANTLR
* Update to better maintained fork of go-mail

v0.161.1
----------
* Ensure that failing a session doesn't leave runs in active/waiting state

v0.161.0
----------
* Update to latest gocommon and phonenumbers

v0.160.0
----------
* Add option to exclude contacts in a flow on start session action

v0.159.2
----------
* Trim URLs in call_webhook actions

v0.159.1
----------
* Fix not equals conditions in contact queries on fields that aren't set

v0.159.0
----------
* Improve simplifying of contactql queries
* Update direct dependencies except ANTLR4
* Go 1.18

v0.158.1
----------
* send_msg action should fallback to template trans in env default language if no trans found for contact language

v0.158.0
----------
* Add status as a contact query attribute, disallowed for smart groups

v0.157.0
----------
* Update to latest gocommon
* Allow querying on whether group is set or not for consistency with other fields
* Support contact queries on flow history

v0.156.1
----------
* SessionAssets implementation of contactql.Resolver methods should return pure assets

v0.156.0
----------
* Give flows.Flow a reference to their asset if they have one

v0.155.0
----------
* Switch from flow to flow_id and groups to group_ids for ES queries

v0.154.0
----------
* Give errors returned from Session.Resume codes

v0.153.0
----------
* Add concat excellent function
* Updated translations from Transifex

v0.152.0
----------
* start_session actions should generate error event if flow asset missing

v0.151.0
----------
* Add flow as contactql query attribute

v0.150.2
----------
* Export events.BaseEvent so that callers can create their own events

v0.150.1
----------
* Fix bug when we remove a contact from all static groups

v0.150.0
----------
* If caller tries to resume with wrong resume type, don't fail session but error instead

v0.149.1
----------
* Update to gocommon 1.17.1

v0.149.0
----------
* Remove no longer used Run.expires_on

v0.148.0
----------
* Add expiresOn to dial waits so all wait types have it

v0.147.0
----------
* Add @trigger.campaign for campaign triggers
* Only treat start_session legacy vars as tel URNs if they are parseable phone numbers

v0.146.1
----------
* Update to latest gocommon

v0.146.0
----------
* Rename FlowRun to Run
* Update to latest gocommon

v0.145.0
----------
* Add expires_on to msg_wait events
* Remove activated wait objects on sessions, callers should use the wait events
* Tweak validation error message for min and max tags when field isn't a slice

v0.144.3
----------
* Fix tests broken by new scheme addition

v0.144.2
----------
* Update to latest gocommon to get Instagram scheme type

v0.144.1
----------
* Update to latest gocommon

v0.144.0
----------
* Add extraction field to webhook_called events

v0.143.4
----------
* Use WebhookCall.ResponseJSON for @webhook and @result.*.extra
* Updated translations from Transifex

v0.143.3
----------
* Add more options for customizing contact used by test.SessionBuilder

v0.143.2
----------
* Add test.SessionBuilder to make it easier to build sessions for testing

v0.143.1
----------
* Include node on segments, revert change to add segments without destinations

v0.143.0
----------
* For random router results, input should be raw random number, value is the bucket
* Include segments with no destination
* Add operand and time to flows.Segment

v0.142.1
----------
* Put back engine.NewSprint which mailroom uses for surveyor submissions

v0.142.0
----------
* Add Segments() to Sprint which returns all complete segments in that sprint
* Simplify error message that users see if they have label action with no input

v0.141.0
----------
* Rework Context into Scope, expose functions via a root scope, and support shadowing
* Cleanup function exposure in contexts and add more tests
* Drop unused child.run.* and parent.run.* parts of the context except .status as used subflow splits
* Add support for anonymous functions in excellent
* Fix function equality/inequality for consistency
* Use syntax tree for refactoring operations
* Excellent evaluation should parse to syntax tree as first step
* Let Excellent functions know their own name to make better error messages
* Only msg resumes should set input, all other resumes clear it

v0.140.1
----------
* Update locale files (adds empty cs and mn translations)

v0.140.0
----------
* Add reverse excellent function

v0.139.1
----------
* Limit webhook URLs to 2048 chars

v0.139.0
----------
* Add sort() excellent function

v0.138.0
----------
* Add engine property for maximum resumes per session

v0.137.0
----------
* Simplify contactql queries after parsing

v0.136.5
----------
* Update to latest gocommon
* Update locale files

v0.136.4
----------
* Improve validator error message with startswith tag

v0.136.3
----------
* Tweak validation to work when struct doesn't use json tags

v0.136.2
----------
* Fix trigger docs

v0.136.1
----------
* Add Session.FindStep

v0.136.0
----------
* Rework WebhookCall and HTTPLog to overlap as much as possible

v0.135.0
----------
* Get rid of ticket subjects

v0.134.3
----------
* Add number of retries to webhook_called events

v0.134.2
----------
* Fix word_slice when passing custom delimiters

v0.134.1
----------
* Re-evaluate dynamic groups after opening tickets

v0.134.0
----------
* Add support for variable user references to open ticket actions

v0.133.1
----------
* Update to latest gocommon/phonenumbers

v0.133.0
----------
* If open ticket action doesn't specify a topic, default to General
* Expose topic instead of subject in context for ticket objects

v0.132.1
----------
* Update to latest gocommon and add webchat URN schemes

v0.132.0
----------
* Require either a subject or a topic to open a ticket but not both
* Add assignee as optional field to open ticket actions
* Add topics to tickets

v0.131.1
----------
* Move slot param for LUIS classifiers to last
* Add util cmd for testing classifier services

v0.131.0
----------
* Update to LUIS API v3.0

v0.130.2
----------
* Add support for tickets queries in elastic

v0.130.1
----------
* Also simplify converting queries to elastic

v0.130.0
----------
* Simplify parsing contact queries
* Add support for query property tickets

v0.129.0
----------
* Rework contactql to separate query parsing, validation and evaluation

v0.128.0
----------
* Add unique excellent function to get unique elements in an array

v0.127.0
----------
* Update to latest gocommon

v0.126.2
----------
* Updated translations from Transifex
* Replace usages of soon to be deprecated ioutil
* Allow Msg type triggers to have connections

v0.126.1
----------
* Update locale files
Expand Down
Loading

0 comments on commit bd24c8c

Please sign in to comment.