Skip to content

refactor: removed nested function calls in SingleTenant module functions#3484

Merged
Ziinc merged 1 commit into
Logflare:mainfrom
nelsonmestevao:ne/refactor-removed-nested-function-calls-in-singletenant-modul
May 29, 2026
Merged

refactor: removed nested function calls in SingleTenant module functions#3484
Ziinc merged 1 commit into
Logflare:mainfrom
nelsonmestevao:ne/refactor-removed-nested-function-calls-in-singletenant-modul

Conversation

@nelsonmestevao

@nelsonmestevao nelsonmestevao commented May 15, 2026

Copy link
Copy Markdown
Contributor

These are offenses in the latest version of credo.

@nelsonmestevao nelsonmestevao force-pushed the ne/refactor-removed-nested-function-calls-in-singletenant-modul branch 3 times, most recently from ed97f27 to 77307a9 Compare May 19, 2026 10:52
end

test "Logflare.Application.startup_tasks/0 should insert plan and user" do
expect(BigQueryAdaptor, :update_iam_policy, fn -> :ok end)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why is this needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

To remove the error log about IAM policies 🙏

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think we should stub the underlying library function globally so that we can silence all related errors that get emitted, pretty sure some error logs are getting emitted due to us not stubbing it in the ConnCase/DataCase.
Can you do a followup for this? 🙏

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

once we have it in place then we won't need this expect anymore.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done in #3550 🙏

@nelsonmestevao nelsonmestevao force-pushed the ne/refactor-removed-nested-function-calls-in-singletenant-modul branch 6 times, most recently from e404eb7 to 773f7a3 Compare May 26, 2026 09:48
@nelsonmestevao nelsonmestevao force-pushed the ne/refactor-removed-nested-function-calls-in-singletenant-modul branch from 773f7a3 to 30ba15f Compare May 29, 2026 11:02
end

test "Logflare.Application.startup_tasks/0 should insert plan and user" do
expect(BigQueryAdaptor, :update_iam_policy, fn -> :ok end)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i think we should stub the underlying library function globally so that we can silence all related errors that get emitted, pretty sure some error logs are getting emitted due to us not stubbing it in the ConnCase/DataCase.
Can you do a followup for this? 🙏

end

test "Logflare.Application.startup_tasks/0 should insert plan and user" do
expect(BigQueryAdaptor, :update_iam_policy, fn -> :ok end)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

once we have it in place then we won't need this expect anymore.

@Ziinc Ziinc merged commit dd3459b into Logflare:main May 29, 2026
13 checks passed
ruslandoga pushed a commit to ruslandoga/logflare that referenced this pull request Jun 2, 2026
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.

2 participants