question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

profile naming and interface

See original GitHub issue

Overview

There are two questions:

  • profile is also in use for datapackage profiles
  • profile interface could be updated

Naming

TBD

Interface

@pwalsh has wrote:


I’m not a fan of passing in data (errors and table in this case), modifying it, and then not returning that modified data. https://github.com/frictionlessdata/goodtables-py/blob/next-initial/goodtables/profiles/datapackage.py#L15

Based on the way profiles are used here, I don’t see why the profile function needs errors and table passed in as arguments - they are always empty. Why not get rid of the empty list assignments and have

errors, tables = profile_handler(source, **options)  # sidenote: handler because more meaningful than func?

The reason why now profiles gets predefined errors and tables - API consistency with checks (but that’s true we could removed errors and tables from profile signature):

profile(errors, tables, ...)
check(errors, columns, ...)

Also cc @amercader

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
pwalshcommented, Oct 27, 2016

@roll I saw and approved the PR

1reaction
rollcommented, Oct 27, 2016

@amercader Both profile are pretty close as a dataset characteristic. But technically it’s still different things. I’m also a big fan of not having different things with the same names. But this one was tricky)

So let’s:

  • rename profile to handler (we get input from user and handler handles it)
  • remove empty arguments from handler signature
Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Interface Profiles
Interface profiles are used when the same configuration is defined on a profile and applied to multiple interfaces. The parameters are defined in...
Read more >
Interface Profiles
Profiles allow you to apply a set of existing parameters to a number of similar type objects, eliminating the need to enter the...
Read more >
Interface Names and Descriptions Configuration
Interface names and descriptions can be obtained from NetFlow starting with v9 (Cisco), NetStream (Huawei), and IPFIX.
Read more >
Named profiles for the AWS CLI
Create and use name profiles for AWS CLI commands. ... A named profile is a collection of settings and credentials that you can...
Read more >
Creating user interface profiles
To create user interface profiles in IBM Cognos Business Intelligence, on the Library tab, copy an existing profile, then name and edit the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found