-
Notifications
You must be signed in to change notification settings - Fork 266
Update doitintl-bigquery-datasource to V2.0.2 #913
Conversation
@marcusolsson Can you overview this please? |
It seems like the packaged plugin contains a __MACOSX directory that makes the plugin fail validation. Could you remove it and repackage the plugin? |
@marcusolsson Edit: |
It reported a (cryptic) error about there has to be only be a single directory in the root of the archive. The ZIP archive must contain a single directory named after the plugin ID that contains the contents of the dist directory: This should produce the correct package:
For more information on packaging plugins, check out Package a plugin. |
@marcusolsson |
Looks good! You can follow the review progress on the project board. |
Modified signatureI am seeing this when I try to load the plugin: Does the plugin need to resigned after the repackaging that @ofir5300 did? (Question for @marcusolsson ) Plugin checker errorWhen I run the plugin check on the release zip file, I get an error for the Testing this file:
Result:
|
Hi @daniellee, |
@ofir5300 thanks - I think that is a bug on in the validator. Do you know anything about the modified signature error? |
Seeing the following error:
|
@ofir5300 did you add images after signing? Do you need help with this? |
@daniellee @marcusolsson What should I do? remove images/resign/something else? |
@ofir5300 I am using the url: https://github.com/doitintl/bigquery-grafana/releases/download/2.0.2/doitintl-bigquery-datasource-2.0.2.zip Did the release zip get updated after resigning? |
@daniellee It did not, I am aware that I should always sign the most updated zip. |
@ofir5300 does the plugin actually work for you? I can't get it to load as Grafana disables the plugin (it sees it as being a tampered plugin). You should see this locally in the Grafana you use for development. |
@daniellee It does seem to have issues suddenly... |
@ofir5300 it could be due to the Grafana 8 release as I think the plugin signing code is now stricter about tampering (when the plugin files don't match what is in the manifest). If re-signing the plugin code doesn't work then let me know and I can get one of our backend engineers to have a look. |
@daniellee I tried re-signing many times, than yes I would like that please. |
@ofir5300 when I look at the manifest file then it does not contain any ireferences to mages but they are definitely in the zip file. So I think Grafana is not the problem - it is something to do with the signing. The plugin is using both webpack for the build and then the plugin toolkit for the signing - so guessing that something is going wrong there. @wbrowne is having a looking at your signing process. |
I'm having trouble trying to build the plugin myself due to Should also note that maybe you don't want to package the |
Ok so I followed @marcusolsson instructions to generate a new zip of a signed plugin. |
@ofir5300 the zip seems to be missing for the 2.0.2 GitHub release. I'm getting a 404 when trying to download it. |
@daniellee I updated the zip file a while ago. Idk if you noticed |
@ofir5300 The signing seems fine now but looks like there are other problems related to the build (wrong permissions on the linux and Windows backend binaries, frontend code not loading). I will investigate a bit deeper and see if I can help with your build script - maybe this mixing of a custom webpack script and the Grafana plugin toolkit is not packaging the way it should. |
Ran into the following issues:
I would strongly recommend switching to Grafana toolkit and removing the custom webpack builds to make the packaging step easier. Fixing doitintl/bigquery-grafana#340 would make it easier for us to help you - hard to submit a PR to improve the build process without this getting fixed first. |
Isnt it how it should be packed? I followed @marcusolsson instructions
I will remove the usage of
I will pay attention and consider that suggestion, I do not wish to make major refactors & changes to the plugin currently. |
If the superquery issue is resolved then we are can send a PR to help you with that. |
@daniellee |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The plugin signing and Angular injection error are both resolved now.
LGTM and thanks for sticking with it @ofir5300 and getting this fixed.
This reverts commit 20c6b66.
@ofir5300 I was bit too fast. There is a reference to an image for a screenshot: https://github.com/doitintl/bigquery-grafana/blob/master/src/plugin.json#L34 which is not included in the zip. Can you either add the image or remove the screenshot from the plugin.json file. Then we should be able to publish it. Thanks for your patience |
@daniellee |
@ofir5300 this should give you a good example And the corresponding plugin.json is inside the If you wanted a link from your README, then you can just point to a URL like Zabbix does |
@ofir5300 sorry for the slow answer - was offline for the last 2 days. As Will says, screenshots are only used on Grafana.com at the top of the plugins page. Could you remove the line from the plugin.json file if you don't want a screenshot and re-sign and republish the GitHub release for 2.0.2 again. Then I can publish it to Grafana.com. Thanks again. |
@daniellee Ok I understand now. I will open a new PR and mention this one inside so you will notice. Is it ok? Edit: opened #988 |
* Add doitintl-bigquery-datasource v2.0.2 * Update v2.0.2 zip file * Add version to the zip name * Update md5 * Update md5 after supporting Grafana 8
Issues solved on V2.0.2:
timeColumn
results in that column appearing multiple times in the generated WHERE clause #309