Open madhushreeray30 opened 11 months ago
@madhushreeray30 😂 Looks like too many rules, I will try to update them.
But should I need to update all of them?
@huacnlee Apologies for the late reply, It seems like a lot of rules however this is the basic structure we follow for all the plugins. It would be great if you could update the plugin as required. Thanks!
I can't write all table's complete documentation in right now, because there have a lot of details of each table, it related to the business logic on https://open.longportapp.com. And as steampipe-plugin the users just need to know the table's name and the columns, so I think it's enough for now.
The other things I think I have done before last commit, if the doc can ignore please check out it again.
Thanks @huacnlee for this new plugin. Great work 🎉 !!
The basic structure looks good so far. While using the plugin, we did come up with a few suggestions based on our best practices:
[x]
config/longport.spc
Could you please update the
longport.spc
file to follow the format of the namecheap plugin.The plugin name in the connection should be
plugin = "longportapp/longport"
.Can you please give a brief description of the config parameter that tells which of them are required and which of them are optional, and then set the parameter with a demo value that looks similar to the actual value?
Also add the details of the environment variables that we can use instead of the config parameters.
Both the descriptions and the config parameters should be commented out and the values should be in the format of the actual values (however incorrect). For instance:
(The values that I have provided are truly demo values can you replace them with values that look like the original ones although changing parts of them to maintain privacy)
[x]
docs/LICENSE
Please add the doc license to the docs folder.
[x]
docs/tables/*
Please make sure the table names are singular, for instance,
longport_broker
instead oflongport_brokers
.We do not generally keep the output of the example queries. Is there a specific reason for doing that?
We have slightly changed the pattern of the table docs can you please take this reference and change it to this format. It should include queries in both Postgres and SQLite.
Please update the format of the example queries using https://www.freeformatter.com/sql-formatter.html#before-output (2 indent spaces).
It's better to avoid the use of
select *
instead we can just query the important columns.The table docs look very light, can you please add 2-3 more example queries to each table.
[x]
docs/index.md
Could you please update the
index.md
file to follow the format of the namecheap plugin.Please add
engines: ["steampipe", "sqlite", "postgres", "export"]
in the top sectionUpdate the steampipe definition to
[Steampipe](https://steampipe.io) is an open-source zero-ETL engine to instantly query cloud APIs using SQL.
Change the
Get Started
toQuick Start
and add the document section before it.Table definitions & examples →
Please update
Download and install the latest Twitter plugin:
to use Longport instead of Twitter.Please update the credential section to include all 4 items (reference).
Please add
Configure your account details in ~/.steampipe/config/longport.spc:
in the configuration section.Please make sure the configuration section is in sync with the updated
longport.spc
file.Please remove the
Get Involved
section and add the details to set these parameters via the environment variables.export LONGPORT_APP_KEY=a12b34cd-56ef-78gh-9i00-jk123lmn456o export LONGPORT_APP_SECRET=sEcReT-9876-AbCd-5432-EfGhIjKlMnOp export LONGPORT_ACCESS_TOKEN=token_1234abcd5678efgh9012ijkl
v0.0.1 [TBD]
What's new?
New tables added
[x]
LICENSE
Please update the file similar to this.
[x]
Makefile
Please update the make command to
[x] #3
Please let us know if you have questions, happy to help 👍.