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

Generic functions to print tables and lists #830

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Generic functions to print tables and lists #830

merged 3 commits into from
Oct 18, 2023

Conversation

janelletavares
Copy link
Contributor

@janelletavares janelletavares commented Oct 17, 2023

Description of change

Fixes https://github.com/meroxa/mdpx/issues/575

Type of change

  • New feature
  • Bug fix
  • Refactor
  • Documentation

How was this tested?

  • Unit Tests
  • Tested in staging
  • Tested in minikube

Demo

before after

Additional references

Documentation updated

@janelletavares janelletavares marked this pull request as ready for review October 17, 2023 19:51
@janelletavares janelletavares force-pushed the mdpx-display branch 2 times, most recently from 3c2aa18 to d59094d Compare October 17, 2023 20:05
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need environments files? We won't have actual env logic in mdpx right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i was under the impression that mdpx made environments easier and that we will continue to give customers to option to launch our platform in private environments. let's confirm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

}

// Keep the distinction between nil and empty slice input
if s.IsNil() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure you'd ever hit this case. If the parameter slice is nil the conditional if s.Kind() != reflect.Slice evaluates to true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i stole it from the StackExchange, so yeah this might need a little tweaking. thanks for looking!

Copy link
Contributor Author

@janelletavares janelletavares Oct 18, 2023

Choose a reason for hiding this comment

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

i made some changes and tested them with a hacked up unit test

@anna-cross anna-cross merged commit 084c27e into mdpx Oct 18, 2023
@anna-cross anna-cross deleted the mdpx-display branch October 18, 2023 19:14
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