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

Guy/fix bug #87

Merged
merged 4 commits into from
Sep 13, 2023
Merged

Guy/fix bug #87

merged 4 commits into from
Sep 13, 2023

Conversation

guyyoo
Copy link
Contributor

@guyyoo guyyoo commented Sep 12, 2023

#34

Release Notes

  • Fix definitions.
  • Improve test.

@Achoobert
Copy link
Contributor

Why would ''label' be part of the list? I'm so confused

expect($data.text(), "Data value").to.contain("label");
expect($data.text(), "Data value").to.contain("Record A");
expect($data.text(), "Data value").to.contain("Record B");

The problem is... I manually ran it again and got this:
I don't understand why. Also don't understand why it isn't running at all for this pr?
image

@Achoobert
Copy link
Contributor

I think if you add this to /test_setup/sql/reset_tables.sql it will make the test way more reliable
On re-run my local gets weird diconnects of the data, because the record isn't actually getting created by the test
Still don't understand what is happening with the label record.....

LOCK TABLES `AB_testkcsonCreate` WRITE;
TRUNCATE TABLE `AB_testkcsonCreate`;
UNLOCK TABLES;

@Achoobert
Copy link
Contributor

Oh, its because of this filter: "label" contains "A"
Apperently I changed the test to match that goofy logic.
image

Fix would be updating that filter to contains "Record A"

@guyyoo
Copy link
Contributor Author

guyyoo commented Sep 12, 2023

Why would ''label' be part of the list? I'm so confused

expect($data.text(), "Data value").to.contain("label");
expect($data.text(), "Data value").to.contain("Record A");
expect($data.text(), "Data value").to.contain("Record B");

The problem is... I manually ran it again and got this: I don't understand why. Also don't understand why it isn't running at all for this pr? image

The label is created by the Process Manager. My guess is that this might be a test to establish a connection via the Process Manager.

It doesn't work on this PR because we need the latest ab_definition_manager (digi-serve/ab_service_definition_manager#52). Another reason is related to the priority of merging.

@guyyoo
Copy link
Contributor Author

guyyoo commented Sep 12, 2023

LOCK TABLES AB_testkcsonCreate WRITE;
TRUNCATE TABLE AB_testkcsonCreate;
UNLOCK TABLES;

Okay, thanks!

@Achoobert
Copy link
Contributor

LGTM

@guyyoo guyyoo merged commit da13a68 into master Sep 13, 2023
2 of 3 checks passed
@guyyoo guyyoo deleted the guy/FixBug branch September 13, 2023 04:28
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.

3 participants