grafana_sql_value and grafana_sql_table result in undefined method `id' for nil:NilClass

Describe the issue
I am evaluating the abilities of the ruby-reporter and when I was testing grafana_sql_value I ran into some issues. I have a dev environment so I am able to quickly test different grafana versions if needed but so far I was trying to match my prod deployment running grafana 7.2.2. I have also tested on 8.2.6m, 8.3.5 and latest. Whenever I try and use the sql calls I get
undefined method 'id' for nil:NilClass
Attaching debug:
I, [2022-11-10T14:12:44.959074 #117406]  INFO -- : Report started at 2022-11-10 14:12:44 +0000
I, [2022-11-10T14:12:44.959133 #117406]  INFO -- : You are running ruby-grafana-reporter version 0.6.2.
D, [2022-11-10T14:12:45.228042 #117406] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"test"}
D, [2022-11-10T14:12:45.228424 #117406] DEBUG -- : Template ./templates/test.adoc contains 3 calls of grafana reporter functions.
D, [2022-11-10T14:12:45.311939 #117406] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 1, sql: )
D, [2022-11-10T14:12:45.312099 #117406] DEBUG -- : Requesting [removed]/api/frontend/settings with '' and timeout '60'
D, [2022-11-10T14:12:45.345936 #117406] DEBUG -- : Received response #<Net::HTTPOK:0x000055e63c2aae40>
F, [2022-11-10T14:12:45.348503 #117406] FATAL -- : undefined method `id' for nil:NilClass
D, [2022-11-10T14:12:45.348989 #117406] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 1, sql: select 1)
F, [2022-11-10T14:12:45.350099 #117406] FATAL -- : undefined method `id' for nil:NilClass
D, [2022-11-10T14:12:45.350389 #117406] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 1, sql: select count(distinct prefix) from global_ip_rib;)
F, [2022-11-10T14:12:45.351419 #117406] FATAL -- : undefined method `id' for nil:NilClass
I, [2022-11-10T14:12:45.378211 #117406]  INFO -- : Report creation ended after 1 seconds with status 'finished'

Application call

type of call [webservice or single-run]: single-run
call of reporter [e.g. ruby-grafana-reporter -c myconfig]:
call of report creation, if running as webservice [e.g. http://localhost/render?var-template=test]: /home/ubuntu/.rbenv/versions/3.0.0/bin/ruby /home/ubuntu/.rbenv/versions/3.0.0/bin/ruby-grafana-reporter -t test -o test.pdf

Template file (if applicable)

filename: test.adoc
relevant part of template file:

include::grafana_sql_value:1[sql="select 1",verbose_log="true"]
grafana_sql_value:1[sql="select 1",verbose_log="true"]
grafana_sql_value:1[sql="select count(distinct prefix) from global_ip_rib;"]

Configuration file

created with configuration wizard version [e.g. 0.3.0 or MANUAL]: 0.6.2 wizard
relevant part of configuration file (remember to X-out personal information as e.g. api_key):

# This configuration has been built with the configuration wizard.

grafana:
  default:
    host: [host]
    api_key: [api_key]

grafana-reporter:
# Specifies how often the reporter shall check for newer versions [number of days].
# You may set check-for-updates to 0 to disable
  check-for-updates: 1
  report-class: GrafanaReporter::Asciidoctor::Report
  templates-folder: ./templates
  reports-folder: ./reports
  report-retention: 24
  webservice-port: 8815
# you may want to configure the following webhook callbacks to get informed on certain events
#  callbacks:
#    all:
#      - <<your_callback_url>>
#      - ...
#    on_before_create:
#      - <<your_callback_url>>
#      - ...
#    on_after_cancel:
#      - <<your_callback_url>>
#      - ...
#    on_after_finish:
#      - <<your_callback_url>>
#      - ...

default-document-attributes:
  imagesdir: ./images
# feel free to add here additional asciidoctor document attributes which are applied to all your templates

Environment (please complete the following information):

OS [e.g. Windows 10]: ubuntu 20.04
Grafana version [e.g. 6.3.4]: 7.2.2 (tested 8.3.5 and latest)
Environment [e.g. source, gem, docker or windows-exe]: gem
Ruby Version, if source or gem environment [e.g. 2.3.7]: 3.0.0
Reporter version [e.g. 0.3.0]: 0.6.2

Thanks for using the reporter.
Did you try creating and running the demo report from the wizard? You may recreate this, when you call ruby-grafana-reporter -w and follow the command line instructions to create a demo report.
Finally, you will receive a statement, which shows, how you may call the reporter with this template.
Does this work for you?
If this is not working, could you please provide (anonymized) results of the web url [removed]/api/frontend/settings? I would only need the part after datasources to investigate.

Thank you for your response. We had some internal issue that took my focus away from this.
If I run the demo report again I see the following output in CLI
/home/ubuntu/.rbenv/versions/3.0.0/bin/ruby /home/ubuntu/.rbenv/versions/3.0.0/bin/ruby-grafana-reporter -t demo_report -o demo_report.pdf
I, [2022-11-23T20:44:38.974328 #155704]  INFO -- : Report started at 2022-11-23 20:44:38 +0000
I, [2022-11-23T20:44:38.974379 #155704]  INFO -- : You are running ruby-grafana-reporter version 0.6.2.
I, [2022-11-23T20:44:39.401796 #155704]  INFO -- : Reporter is running with NON-Admin privileges on grafana.
F, [2022-11-23T20:44:39.875299 #155704] FATAL -- : undefined method `id' for nil:NilClass
F, [2022-11-23T20:44:43.593375 #155704] FATAL -- : undefined method `id' for nil:NilClass
I, [2022-11-23T20:44:45.715919 #155704]  INFO -- : Report creation ended after 7 seconds with status 'finished'

In the report I can see the same error. Although in the pdf I seem to see the error contains part of the sql query in the error.

Datasource Setting from the API
"datasources": {
    "[datasource]": {
      "access": "proxy",
      "id": 1,
      "isDefault": false,
      "jsonData": {
        "keepCookies": null,
        "sslmode": "require",
        "timescaledb": true
      },
      "meta": {
        "id": "postgres",
        "type": "datasource",
        "name": "PostgreSQL",
        "info": {
          "author": {
            "name": "Grafana Labs",
            "url": "https://grafana.com"
          },
          "description": "Data source for PostgreSQL and compatible databases",
          "links": null,
          "logos": {
            "small": "public/app/plugins/datasource/postgres/img/postgresql_logo.svg",
            "large": "public/app/plugins/datasource/postgres/img/postgresql_logo.svg"
          },
          "build": {},
          "screenshots": null,
          "version": "",
          "updated": ""
        },
        "dependencies": {
          "grafanaDependency": "",
          "grafanaVersion": "*",
          "plugins": []
        },
        "includes": null,
        "category": "sql",
        "preload": false,
        "backend": true,
        "routes": null,
        "skipDataQuery": false,
        "autoEnabled": false,
        "annotations": true,
        "metrics": true,
        "alerting": true,
        "explore": false,
        "tables": false,
        "logs": false,
        "tracing": false,
        "queryOptions": {
          "minInterval": true
        },
        "streaming": false,
        "signature": "internal",
        "module": "app/plugins/datasource/postgres/module",
        "baseUrl": "public/app/plugins/datasource/postgres"
      },
      "module": "app/plugins/datasource/postgres/module",
      "name": "[datasource name]",
      "preload": false,
      "type": "postgres",
      "uid": "P9036489B7A1AC03C",
      "url": "/api/datasources/proxy/1"
    }
  }

Thanks for the feedback. At first glance, it looks like the brackets [ and ] in the SqlValueInlineMacro might lead to an issue here. Is it possible to formulate the SQL query without those brackets and try again?
If this was the issue, I would have to dig deeper into asciidoctor syntax, as this might limit our possibilities here.

When I remove the square brackets it just embeds the line into the pdf as the "grafana_sql_value" statement.
While troubleshooting an issue I was having with grafana_panel_image I found some interesting behavior. I was getting the same "FATAL -- : undefined method `[]' for nil:NilClass" issue". Here is the debug output
D, [2022-11-29T19:12:01.518785 #171648] DEBUG -- : Received request: GET /render?var-template=peer&var-group_name=removed&var-ASNs=All HTTP/1.1
D, [2022-11-29T19:12:01.518940 #171648] DEBUG -- : query_parameters: {"var-template"=>["peer"], "var-group_name"=>["removed"], "var-ASNs"=>["All"]}
I, [2022-11-29T19:12:01.521506 #171648]  INFO -- : 1 report(s) in progress: 0% (running 0 secs)
I, [2022-11-29T19:12:01.522422 #171648]  INFO -- : Report started at 2022-11-29 19:12:01 +0000
I, [2022-11-29T19:12:01.522529 #171648]  INFO -- : You are running ruby-grafana-reporter version 0.6.2.
D, [2022-11-29T19:12:01.522657 #171648] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"peer", "var-group_name"=>"removed", "var-ASNs"=>"All"}
D, [2022-11-29T19:12:01.522888 #171648] DEBUG -- : Template ./templates/peer.adoc contains 1 calls of grafana reporter functions.
D, [2022-11-29T19:12:01.575309 #171648] DEBUG -- : Processing PanelImageInlineMacro (instance: default, dashboard: BipxHhnVz, panel: 2)
D, [2022-11-29T19:12:01.575531 #171648] DEBUG -- : Requesting https://[removed]/api/frontend/settings with '' and timeout '60'
D, [2022-11-29T19:12:01.595582 #171648] DEBUG -- : Received request: GET /view_report?report_id=2280 HTTP/1.1
D, [2022-11-29T19:12:01.595647 #171648] DEBUG -- : query_parameters: {"report_id"=>["2280"]}
D, [2022-11-29T19:12:01.601005 #171648] DEBUG -- : Received response #<Net::HTTPOK:0x00007fe1007ae070>
D, [2022-11-29T19:12:01.601933 #171648] DEBUG -- : Requesting https://[removed]/api/dashboards/uid/BipxHhnVz with '' and timeout '60'
D, [2022-11-29T19:12:01.631913 #171648] DEBUG -- : Received response #<Net::HTTPOK:0x00007fe1007ee3a0>
D, [2022-11-29T19:12:01.648725 #171648] DEBUG -- : Requesting https://[removed]/api/health with '' and timeout '60'
D, [2022-11-29T19:12:01.667216 #171648] DEBUG -- : Received response #<Net::HTTPOK:0x00007fe1006874d0>
D, [2022-11-29T19:12:01.667638 #171648] DEBUG -- : Requesting https://[removed]/render/d-solo/BipxHhnVz?panelId=2&fullscreen=true&theme=light&timeout=240&var-group_name=removed&var-ASNs=%5B%22%24__all%22%5D&var-template=peer&var-asns=All&from=1664582400000&to=1667260799000 with '' and timeout '60'
I, [2022-11-29T19:12:06.522195 #171648]  INFO -- : 1 report(s) in progress: 100% (running 4 secs)
I, [2022-11-29T19:12:11.522590 #171648]  INFO -- : 1 report(s) in progress: 100% (running 10 secs)
I, [2022-11-29T19:12:16.523001 #171648]  INFO -- : 1 report(s) in progress: 100% (running 15 secs)
I, [2022-11-29T19:12:21.523413 #171648]  INFO -- : 1 report(s) in progress: 100% (running 20 secs)
I, [2022-11-29T19:12:26.523886 #171648]  INFO -- : 1 report(s) in progress: 100% (running 25 secs)
I, [2022-11-29T19:12:31.524312 #171648]  INFO -- : 1 report(s) in progress: 100% (running 30 secs)
I, [2022-11-29T19:12:36.524808 #171648]  INFO -- : 1 report(s) in progress: 100% (running 35 secs)
I, [2022-11-29T19:12:41.525227 #171648]  INFO -- : 1 report(s) in progress: 100% (running 40 secs)
I, [2022-11-29T19:12:46.525689 #171648]  INFO -- : 1 report(s) in progress: 100% (running 45 secs)
I, [2022-11-29T19:12:51.526116 #171648]  INFO -- : 1 report(s) in progress: 100% (running 50 secs)
I, [2022-11-29T19:12:56.526596 #171648]  INFO -- : 1 report(s) in progress: 100% (running 55 secs)
I, [2022-11-29T19:13:01.527022 #171648]  INFO -- : 1 report(s) in progress: 100% (running 60 secs)
I, [2022-11-29T19:13:06.527494 #171648]  INFO -- : 1 report(s) in progress: 100% (running 65 secs)
I, [2022-11-29T19:13:11.527950 #171648]  INFO -- : 1 report(s) in progress: 100% (running 70 secs)
I, [2022-11-29T19:13:16.528420 #171648]  INFO -- : 1 report(s) in progress: 100% (running 75 secs)
I, [2022-11-29T19:13:21.528960 #171648]  INFO -- : 1 report(s) in progress: 100% (running 80 secs)
I, [2022-11-29T19:13:26.529529 #171648]  INFO -- : 1 report(s) in progress: 100% (running 85 secs)
I, [2022-11-29T19:13:31.530038 #171648]  INFO -- : 1 report(s) in progress: 100% (running 90 secs)
I, [2022-11-29T19:13:36.530487 #171648]  INFO -- : 1 report(s) in progress: 100% (running 95 secs)
I, [2022-11-29T19:13:41.531176 #171648]  INFO -- : 1 report(s) in progress: 100% (running 100 secs)
I, [2022-11-29T19:13:46.531772 #171648]  INFO -- : 1 report(s) in progress: 100% (running 105 secs)
I, [2022-11-29T19:13:51.532225 #171648]  INFO -- : 1 report(s) in progress: 100% (running 110 secs)
I, [2022-11-29T19:13:56.532611 #171648]  INFO -- : 1 report(s) in progress: 100% (running 115 secs)
I, [2022-11-29T19:14:01.545347 #171648]  INFO -- : 1 report(s) in progress: 100% (running 120 secs)
F, [2022-11-29T19:14:01.826185 #171648] FATAL -- : undefined method `[]' for nil:NilClass
I, [2022-11-29T19:14:01.863312 #171648]  INFO -- : Report creation ended after 120 seconds with status 'finished'

We can see that "var-ASNs" is set properly based on the value I put in the GET request "ALL" but we can also see that the reporter appears to request a url that contains both "var-ASNs" and "var-asns" where the latter is set to ["$__all"] (decoded). After changing the dashboard variable from ASNs -> asns, everything works as expected.
I wonder if this is related to the grafana_sql_value issue as it is the same error? This is the output of just grafana_sql_value
I, [2022-11-29T19:21:49.757179 #172696]  INFO -- : Server listening on port 8815...
D, [2022-11-29T19:21:54.212709 #172696] DEBUG -- : Received request: GET /render?var-template=peer HTTP/1.1
D, [2022-11-29T19:21:54.212879 #172696] DEBUG -- : query_parameters: {"var-template"=>["peer"]}
I, [2022-11-29T19:21:54.215802 #172696]  INFO -- : Report started at 2022-11-29 19:21:54 +0000
I, [2022-11-29T19:21:54.218688 #172696]  INFO -- : You are running ruby-grafana-reporter version 0.6.2.
I, [2022-11-29T19:21:54.218935 #172696]  INFO -- : 1 report(s) in progress: 0% (running 0 secs)
D, [2022-11-29T19:21:54.310214 #172696] DEBUG -- : Received request: GET /view_report?report_id=2080 HTTP/1.1
D, [2022-11-29T19:21:54.310357 #172696] DEBUG -- : query_parameters: {"report_id"=>["2080"]}
D, [2022-11-29T19:21:54.442822 #172696] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"peer"}
D, [2022-11-29T19:21:54.443078 #172696] DEBUG -- : Template ./templates/peer.adoc contains 1 calls of grafana reporter functions.
D, [2022-11-29T19:21:54.530599 #172696] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 1, sql: "select count(distinct asn_right) as count   from as_path_analysis a   where a.asn = [asn_num)
D, [2022-11-29T19:21:54.530778 #172696] DEBUG -- : Requesting https://[removed]/api/frontend/settings with '' and timeout '60'
D, [2022-11-29T19:21:54.559602 #172696] DEBUG -- : Received response #<Net::HTTPOK:0x0000563dec10ac68>
F, [2022-11-29T19:21:54.561996 #172696] FATAL -- : undefined method `id' for nil:NilClass
I, [2022-11-29T19:21:54.590194 #172696]  INFO -- : Report creation ended after 0 seconds with status 'finished'

In this case it fails before there is any in progress status.
Curious to know your thoughts

Hm, interesting. Looks like the variable names are case sensitive in the reporter, but maybe not for Grafana. I guess I have to investigate deeper there.
Just to understand: the grafana_panel_image is working now, right?
Regarding the manual query: It is a known bug in prometheus queries, that ] have to be escaped with \]. (refer https://github.com/divinity666/ruby-grafana-reporter/releases/tag/v0.5.1.
Please try the SQL query again with escaped closing square brackets

Ah I see, the query with non escaped brackets was auto generated in the demo_report. However the issue is still present with a simple query: grafana_sql_value:1[sql="select count(distinct prefix) from global_ip_rib;"]

Can you provide the logs for this easy example as well?

dev-test.adoc:
grafana_sql_value:1[sql="select count(distinct prefix) from global_ip_rib;"]

include::grafana_panel_query_table:19[query="A",dashboard="BipxHhnVz",verbose_log="true"]

single run debug:
/home/ubuntu/.rbenv/versions/3.0.0/bin/ruby /home/ubuntu/.rbenv/versions/3.0.0/bin/ruby-grafana-reporter -t dev-test -o test.pdf -d DEBUG
I, [2023-01-04T19:59:56.549094 #54082]  INFO -- : Report started at 2023-01-04 19:59:56 +0000
I, [2023-01-04T19:59:56.549136 #54082]  INFO -- : You are running ruby-grafana-reporter version 0.6.2.
D, [2023-01-04T19:59:56.791909 #54082] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"dev-test"}
D, [2023-01-04T19:59:56.792136 #54082] DEBUG -- : Template ./templates/dev-test.adoc contains 2 calls of grafana reporter functions.
D, [2023-01-04T19:59:56.794364 #54082] DEBUG -- : Processing PanelQueryTableIncludeProcessor (instance: default, dashboard: BipxHhnVz, panel: 19, query: A)
D, [2023-01-04T19:59:56.794740 #54082] DEBUG -- : Requesting https://[grafana-host]/api/frontend/settings with '' and timeout '60'
D, [2023-01-04T19:59:56.824081 #54082] DEBUG -- : Received response #<Net::HTTPOK:0x000055604d0f5de0>
D, [2023-01-04T19:59:56.826456 #54082] DEBUG -- : Requesting https://[grafana-host]/api/dashboards/uid/BipxHhnVz with '' and timeout '60'
D, [2023-01-04T19:59:56.856087 #54082] DEBUG -- : Received response #<Net::HTTPOK:0x000055604d157900>
D, [2023-01-04T19:59:56.859225 #54082] DEBUG -- : Requesting https://[grafana-host]/api/health with '' and timeout '60'
D, [2023-01-04T19:59:56.874100 #54082] DEBUG -- : Received response #<Net::HTTPOK:0x000055604d1b8e58>
D, [2023-01-04T19:59:56.874784 #54082] DEBUG -- : Requesting https://[grafana-host]/api/tsdb/query with '{"from":"1665086396000","to":"1672862395000","queries":[{"rawSql":"select asn_number from asns where peer_group='telus'\n\n","datasourceId":2,"format":"table"}]}' and timeout '60'
D, [2023-01-04T19:59:56.903032 #54082] DEBUG -- : Received response #<Net::HTTPOK:0x000055604d1d4630>
D, [2023-01-04T19:59:56.903503 #54082] DEBUG -- : Raw result: {:header=>["asn_number"], :content=>[[852], [8013], [7861], [7445], [5765], [54719], [393217], [24914], [19190], [18214], [1691], [14663]]}
D, [2023-01-04T19:59:56.903828 #54082] DEBUG -- : Formatted result: | 852
| 8013
| 7861
| 7445
| 5765
| 54719
| 393217
| 24914
| 19190
| 18214
| 1691
| 14663
D, [2023-01-04T19:59:56.938454 #54082] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 1, sql: select count(distinct prefix) from global_ip_rib;)
F, [2023-01-04T19:59:56.945444 #54082] FATAL -- : undefined method `id' for nil:NilClass
I, [2023-01-04T19:59:56.961543 #54082]  INFO -- : Report creation ended after 0 seconds with status 'finished'

The resulting pdf:

Good to see that one query was working as expected! By the way: to make it a table, you have to frame it like to:
|===
include::grafana_panel_query_table:19[query="A",dashboard="BipxHhnVz",verbose_log="true"]
|===

Now coming to the other query, which is not working: What makes me think is, that you specify there the datasource 1, whereas the other query runs on datasource 2.
Could it be, that you have to run the second query also on datasource 2, like so:
grafana_sql_value:2[sql="select count(distinct prefix) from global_ip_rib;"]

Does that work for you?

That was my mistake, the query table is grabbing stuff from a different datasource. However, I don't think the issue is related to the specific datasource? The panel in grafana makes an sql query to datasource 2 and when I modify the template to make the same raw sql, it still results in the error. I seem to get this error anytime I try and use grafana_sql_value. I have even manually added a new datasource and tested it with the same results. I modified the template to:
grafana_sql_value:2[sql="select asn_number from asns where peer_group='telus'"]

|===
include::grafana_panel_query_table:19[query="A",dashboard="BipxHhnVz",verbose_log="true"]
|===

logs:
/home/ubuntu/.rbenv/versions/3.0.0/bin/ruby /home/ubuntu/.rbenv/versions/3.0.0/bin/ruby-grafana-reporter -t dev-test -o test.pdf -d DEBUG
I, [2023-01-05T14:38:35.880587 #55666]  INFO -- : Report started at 2023-01-05 14:38:35 +0000
I, [2023-01-05T14:38:35.880629 #55666]  INFO -- : You are running ruby-grafana-reporter version 0.6.2.
D, [2023-01-05T14:38:36.035628 #55666] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"dev-test"}
D, [2023-01-05T14:38:36.035839 #55666] DEBUG -- : Template ./templates/dev-test.adoc contains 2 calls of grafana reporter functions.
D, [2023-01-05T14:38:36.038092 #55666] DEBUG -- : Processing PanelQueryTableIncludeProcessor (instance: default, dashboard: BipxHhnVz, panel: 19, query: A)
D, [2023-01-05T14:38:36.038523 #55666] DEBUG -- : Requesting https://[grafana host]/api/frontend/settings with '' and timeout '60'
D, [2023-01-05T14:38:36.073780 #55666] DEBUG -- : Received response #<Net::HTTPOK:0x000055ba9d3af1d0>
D, [2023-01-05T14:38:36.075330 #55666] DEBUG -- : Requesting https://[grafana host]/api/dashboards/uid/BipxHhnVz with '' and timeout '60'
D, [2023-01-05T14:38:36.106083 #55666] DEBUG -- : Received response #<Net::HTTPOK:0x000055ba9d483868>
D, [2023-01-05T14:38:36.109697 #55666] DEBUG -- : Requesting https://[grafana host]/api/health with '' and timeout '60'
D, [2023-01-05T14:38:36.124545 #55666] DEBUG -- : Received response #<Net::HTTPOK:0x000055ba9df87ed0>
D, [2023-01-05T14:38:36.125180 #55666] DEBUG -- : Requesting https://[grafana host]/api/tsdb/query with '{"from":"1665153516000","to":"1672929515000","queries":[{"rawSql":"select asn_number from asns where peer_group='telus'\n\n","datasourceId":2,"format":"table"}]}' and timeout '60'
D, [2023-01-05T14:38:36.153903 #55666] DEBUG -- : Received response #<Net::HTTPOK:0x000055ba9d493c40>
D, [2023-01-05T14:38:36.154327 #55666] DEBUG -- : Raw result: {:header=>["asn_number"], :content=>[[852], [8013], [7861], [7445], [5765], [54719], [393217], [24914], [19190], [18214], [1691], [14663]]}
D, [2023-01-05T14:38:36.154593 #55666] DEBUG -- : Formatted result: | 852
| 8013
| 7861
| 7445
| 5765
| 54719
| 393217
| 24914
| 19190
| 18214
| 1691
| 14663
D, [2023-01-05T14:38:36.197143 #55666] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 2, sql: select asn_number from asns where peer_group='telus')
F, [2023-01-05T14:38:36.197628 #55666] FATAL -- : undefined method `id' for nil:NilClass
I, [2023-01-05T14:38:36.248604 #55666]  INFO -- : Report creation ended after 1 seconds with status 'finished'

Resulting pdf:

I just released a new version, which should avoid the FATAL error - maybe in your case replaced it with a WARN message and still not functioning, but hopefully supports us in finding the root cause.
Anyway, I am happy to hear, that other queries seem to work as expected.
It would be great, if you could share the logs again when using the latest version.

I have just updated and ran with the following template:
grafana_sql_value:2[sql="select asn_number from asns where peer_group='telus'"]

|===
include::grafana_panel_query_table:19[query="A",dashboard="BipxHhnVz",verbose_log="true"]
|===

which generated the following report

(Note the panel is just a grafana representation of the sql query)
with the following logs:
I, [2023-01-13T19:59:52.593731 #22894]  INFO -- : Server listening on port 8815...
D, [2023-01-13T20:00:33.444696 #22894] DEBUG -- : Received request: GET /render?var-template=dev-test&var-group_name=telus&var-asns=All HTTP/1.1
D, [2023-01-13T20:00:33.444921 #22894] DEBUG -- : query_parameters: {"var-template"=>["dev-test"], "var-group_name"=>["telus"], "var-asns"=>["All"]}
I, [2023-01-13T20:00:33.448806 #22894]  INFO -- : Report started at 2023-01-13 20:00:33 +0000
I, [2023-01-13T20:00:33.448973 #22894]  INFO -- : You are running ruby-grafana-reporter version 0.6.3.
I, [2023-01-13T20:00:33.451506 #22894]  INFO -- : 1 report(s) in progress: 0% (running 0 secs)
D, [2023-01-13T20:00:33.519531 #22894] DEBUG -- : Received request: GET /view_report?report_id=2080 HTTP/1.1
D, [2023-01-13T20:00:33.519674 #22894] DEBUG -- : query_parameters: {"report_id"=>["2080"]}
D, [2023-01-13T20:00:33.664773 #22894] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"dev-test", "var-group_name"=>"telus", "var-asns"=>"All"}
D, [2023-01-13T20:00:33.666413 #22894] DEBUG -- : Template ./templates/dev-test.adoc contains 2 calls of grafana reporter functions.
D, [2023-01-13T20:00:33.669184 #22894] DEBUG -- : Processing PanelQueryTableIncludeProcessor (instance: default, dashboard: BipxHhnVz, panel: 19, query: A)
D, [2023-01-13T20:00:33.670206 #22894] DEBUG -- : Requesting https://[grafana-host]/api/frontend/settings with '' and timeout '60'
D, [2023-01-13T20:00:33.707492 #22894] DEBUG -- : Received response #<Net::HTTPOK:0x00007f65d807bdc8>
D, [2023-01-13T20:00:33.709666 #22894] DEBUG -- : Requesting https://[grafana-host]/api/dashboards/uid/BipxHhnVz with '' and timeout '60'
D, [2023-01-13T20:00:33.742096 #22894] DEBUG -- : Received response #<Net::HTTPOK:0x00007f65d80d98d8>
D, [2023-01-13T20:00:33.746420 #22894] DEBUG -- : Requesting https://[grafana-host]/api/health with '' and timeout '60'
D, [2023-01-13T20:00:33.767810 #22894] DEBUG -- : Received response #<Net::HTTPOK:0x00007f65d814edb8>
D, [2023-01-13T20:00:33.769174 #22894] DEBUG -- : Requesting https://[grafana-host]/api/tsdb/query with '{"from":"1665864033000","to":"1673640032000","queries":[{"rawSql":"select asn_number from asns where peer_group='telus'\n\n","datasourceId":2,"format":"table"}]}' and timeout '60'
D, [2023-01-13T20:00:33.780226 #22894] DEBUG -- : Received request: GET /favicon.ico HTTP/1.1
D, [2023-01-13T20:00:33.780326 #22894] DEBUG -- : query_parameters: {"GET /favicon.ico HTTP/1.1"=>[]}
D, [2023-01-13T20:00:33.780467 #22894] DEBUG -- : GrafanaReporterError: Request 'GET /favicon.ico HTTP/1.1' calls an unknown path for this webservice.
D, [2023-01-13T20:00:33.840606 #22894] DEBUG -- : Received response #<Net::HTTPOK:0x00007f65d81711b0>
D, [2023-01-13T20:00:33.841342 #22894] DEBUG -- : Raw result: {:header=>["asn_number"], :content=>[[852], [8013], [7861], [7445], [5765], [54719], [393217], [24914], [19190], [18214], [1691], [14663]]}
D, [2023-01-13T20:00:33.842009 #22894] DEBUG -- : Formatted result: | 852
| 8013
| 7861
| 7445
| 5765
| 54719
| 393217
| 24914
| 19190
| 18214
| 1691
| 14663
D, [2023-01-13T20:00:34.038233 #22894] DEBUG -- : Processing SqlValueInlineMacro (instance: default, datasource: 2, sql: select asn_number from asns where peer_group='telus')
D, [2023-01-13T20:00:34.038716 #22894] DEBUG -- : Requesting https://[grafana-host]/api/tsdb/query with '{"from":"1673640033000","to":"1673640033000","queries":[{"rawSql":"select asn_number from asns where peer_group='telus'","datasourceId":2,"format":"table"}]}' and timeout '60'
D, [2023-01-13T20:00:34.065928 #22894] DEBUG -- : Received response #<Net::HTTPOK:0x0000556ff93c97b8>
I, [2023-01-13T20:00:34.160916 #22894]  INFO -- : Report creation ended after 1 seconds with status 'finished'
D, [2023-01-13T20:00:38.454647 #22894] DEBUG -- : Received request: GET /view_report?report_id=2080 HTTP/1.1
D, [2023-01-13T20:00:38.454809 #22894] DEBUG -- : query_parameters: {"report_id"=>["2080"]}
D, [2023-01-13T20:00:38.454930 #22894] DEBUG -- : Returning PDF report at ./reports/gf_pdf_20230113-22894-mecabq

I am not sure I understand the change but from the results it looks like it has resolved the issue as now I can see the "result in the first row of the first column" which is the expected behavior.
If this resolution was expected I think we can close this issue. Thanks for all the assitance

Well, the good thing is, that the issue is solved now, though I would have expected some WARN message in the log, which is not the case.
Anyway: let's close the issue for now.
Thanks for your support!


can't clone repo

when runnning
$ git clone https://github.com/Doha26/InstagramClone.git
$ cd InstagramClone
$ npm install
$ react-native run-ios
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening InstagramClone.xcworkspace. Run CLI with --verbose flag for more details.
Prepare build
note: Using legacy build system
=== BUILD TARGET InstagramClone OF PROJECT InstagramClone WITH CONFIGURATION Debug ===

Check dependencies
The file “Pods-InstagramClone.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/cliffkyanne/InstagramClone/ios/Pods/Target Support Files/Pods-InstagramClone/Pods-InstagramClone.debug.xcconfig)

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/cliffkyanne/Library/Developer/Xcode/DerivedData/InstagramClone-buttocxmfsowvqbpqjbrojrozidb/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Script-43DE2BB8B1110D5D511C086C.sh
    cd /Users/cliffkyanne/InstagramClone/ios
    /bin/sh -c /Users/cliffkyanne/Library/Developer/Xcode/DerivedData/InstagramClone-buttocxmfsowvqbpqjbrojrozidb/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Script-43DE2BB8B1110D5D511C086C.sh
diff: /Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

** BUILD FAILED **

The following build commands failed:
	PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/cliffkyanne/Library/Developer/Xcode/DerivedData/InstagramClone-buttocxmfsowvqbpqjbrojrozidb/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Script-43DE2BB8B1110D5D511C086C.sh
(1 failure)

Hi ,
it seems to be a problem with pods. project use Pods as you can see a Podfile in the "ios"  folder.
at the root of the project, run this.

cd ios && pod install &&  cd..
react-native run-ios

thanks. for your return. i will update the readme to add the "pod install" command.
Let me know if everything okay

Hi, Doha
Error occurs when running:

cd ios && pod install && cd..

w $cd ios && pod install && cd..

Detected React Native module pods for BVLinearGradient, RNGestureHandler, RNReanimated, RNSVG, RNVectorIcons, react-native-blur, react-native-camera, react-native-cameraroll, react-native-fetch-blob, and react-native-video
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] CocoaPods could not find compatible versions for pod "React/Core":
  In Podfile:
    react-native-fetch-blob (from `../node_modules/react-native-fetch-blob`) was resolved to 0.10.6, which depends on
      React/Core

None of your spec sources contain a spec satisfying the dependency: `React/Core`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Hi,
the error is pretty clear i think.
may be an out-of-date version of cocoapods installed on your local machine.
try this :

pod update && pod install

Thanks for all your help and prompt replies.
I ran the updates and now simulator is launching but still failing

Hi,
seems to also been a problem with your Pods.

try update your cocoapods gobaly with brew upgrade cocoapods .
run pod deintegrate && pod install  inside the ios folder.
then react-native run-ios at the root .

Hi,
is everything work fine ? so can we close this issue ?

I didn't want to be a nuisance, I was not able to get it working. I tried every "solution" I could find from people having similar issues.
the furthest I was able to get upon running :

try update your cocoapods gobaly with brew upgrade cocoapods .

run pod deintegrate && pod install inside the ios folder.

then react-native run-ios --simulator="iPhone 11" at the root .

`error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening I
nstagramClone.xcworkspace. Run CLI with --verbose flag for more details.
User defaults from command line:
IDEDerivedDataPathOverride = /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone
Prepare build
note: Using legacy build system
=== BUILD TARGET InstagramClone OF PROJECT InstagramClone WITH CONFIGURATION Debug ===
Check dependencies
PhaseScriptExecution Start\ Packager build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Script-FD10A7F022414F080027D42C.sh
cd /Users/cliffkyanne/InstagramClone/ios
/bin/sh -c /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Script-FD10A7F022414F080027D42C.sh
Connection to localhost port 8081 [tcp/sunproxyadmin] succeeded!
CompileC build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/main.o InstagramClone/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/cliffkyanne/InstagramClone/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cliffkyanne/.rbenv/shims:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/cliffkyanne/flutter/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Index/DataStore -iquote /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-generated-files.hmap -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-own-target-headers.hmap -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-all-target-headers.hmap -iquote /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-project-headers.hmap -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Products/Debug-iphonesimulator/include -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/DerivedSources-normal/x86_64 -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/DerivedSources/x86_64 -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/DerivedSources -F/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/main.d --serialize-diagnostics /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/main.dia -c /Users/cliffkyanne/InstagramClone/ios/InstagramClone/main.m -o /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/main.o
In file included from /Users/cliffkyanne/InstagramClone/ios/InstagramClone/main.m:10:
/Users/cliffkyanne/InstagramClone/ios/InstagramClone/AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
CompileC build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/AppDelegate.o InstagramClone/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/cliffkyanne/InstagramClone/ios
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cliffkyanne/.rbenv/shims:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/cliffkyanne/flutter/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios9.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -DDEBUG=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Index/DataStore -iquote /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-generated-files.hmap -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-own-target-headers.hmap -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-all-target-headers.hmap -iquote /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/InstagramClone-project-headers.hmap -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Products/Debug-iphonesimulator/include -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/DerivedSources-normal/x86_64 -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/DerivedSources/x86_64 -I/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/DerivedSources -F/Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Products/Debug-iphonesimulator -MMD -MT dependencies -MF /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/AppDelegate.d --serialize-diagnostics /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/AppDelegate.dia -c /Users/cliffkyanne/InstagramClone/ios/InstagramClone/AppDelegate.m -o /Users/cliffkyanne/InstagramClone/ios/build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/AppDelegate.o
In file included from /Users/cliffkyanne/InstagramClone/ios/InstagramClone/AppDelegate.m:8:
/Users/cliffkyanne/InstagramClone/ios/InstagramClone/AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
#import <React/RCTBridgeDelegate.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
** BUILD FAILED **
The following build commands failed:
CompileC build/InstagramClone/Build/Intermediates.noindex/InstagramClone.build/Debug-iphonesimulator/InstagramClone.build/Objects-normal/x86_64/main.o InstagramClone/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
`

Hi,
Previous steps fix issues related to dépendances.
Now Error ask you to try building with the XCode app. Look like command line build has some problem with some imports.

open XCode
go to the iOS folder
open InstagramClone.xcworkspace in Xcode and build.

Thanks for your patience and all your replies. I just can't make this work spent too many hours attempting to figure it out. I don't think it has anything to do with your project just something not going right on my end.  I'm going to spend some time away from it, and i'll try to resolve it later. You could close the issue.

Hi,
Alright. I had been able to follow the same steps on my local machine and run the app without any issue.
You also need to be familiar with xcode to well understand errors and fix them quickly otherwise you will spend weeks trying to fix something may be simple.
Regards.


Allow cleanup policy change for delete to compact_delete

Add option to change cleanup policy from delete to compact_and_delete while updating an event type.
Related Nakadi change: https://github.com/zalando/nakadi/pull/1235

:+1:

:+1:


Fix build with OpenSSL 1.1.x (broken in v4.30-9696-beta)

Hi @dnobori , I know this repository doesn't accept pull requests but I would like to let you know the latest release v4.30-9696-beta does not build with OpenSSL 1.1.x. Consider applying the same fix with SoftEtherVPN/SoftEtherVPN#476 to this stable repository.
I do not assert any copyrights on this pull request as the changeset is made by original submitter.

For the record, the previous release v4.29-9680-rtm builds with OpenSSL 1.1.x.

Thank you for reporting it. OpenSSL broke the backward compatibility.
Unfortunately the stable repository is not managed with git, I will update it manually as soon as possible.

@metalefty
I uploaded the new source code. Could you please check if the problem solved?

It builds successfully now, with OpenSSL 1.1.1c on FreeBSD 12-STABLE. Thank you for your work.


Pipeline crashed with exception when there is no image

Steps/Code to reproduce:
1 setup env and install towhee:
python3 -m venv towhee-test-env
pip install -U pip
pip install towhee

2 into python env: phthon3:
from towhee import pipeline
p = pipeline('image-embedding')
embedding = p()

Expected result:
Return error
Actual results:
pipeline crashed with eexception:
>>> embedding = p()
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/Users/binbin/Towee/towhee-test-env/lib/python3.8/site-packages/towhee/engine/engine.py", line 85, in run
    self._task_sched.schedule_forever(self._config.sched_interval_ms)
  File "/Users/binbin/Towee/towhee-test-env/lib/python3.8/site-packages/towhee/engine/task_scheduler.py", line 78, in schedule_forever
    self.schedule_step()
  File "/Users/binbin/Towee/towhee-test-env/lib/python3.8/site-packages/towhee/engine/task_scheduler.py", line 139, in schedule_step
    tasks = op_ctx.pop_ready_tasks(n_tasks=1)
  File "/Users/binbin/Towee/towhee-test-env/lib/python3.8/site-packages/towhee/engine/operator_context.py", line 99, in pop_ready_tasks
    op_input_params = self._reader.read()
  File "/Users/binbin/Towee/towhee-test-env/lib/python3.8/site-packages/towhee/engine/_operator_io.py", line 87, in read
    return self._to_op_inputs(data[0])
  File "/Users/binbin/Towee/towhee-test-env/lib/python3.8/site-packages/towhee/engine/_operator_io.py", line 63, in _to_op_inputs
    ret[key] = cols[index].value
IndexError: tuple index out of range

Environment:
Mac OS

Leaving this issue open for now (will be fixed in v0.2).


How to do word cloud or frequency distribution on each topic?

First of all thanks for the wonderful work. It works perfectly, I got my topics with right anchor words. Everything is working fine, however I want to see the word cloud or frequency distribution of each topic. How can do that? Thanks in advance.

Hi @JeevaGanesan, glad that everything has been working well for you.
If you want to see which words have the highest mutual information with each topic, then you can use the get_topics() function to get the topic words and their mutual informations. Those could then be used with matplotlib to do a bar graph of the top words in the topic. Is that what you are looking for?

Yup, i tried this,
import matplotlib.pyplot as plt
from wordcloud import WordCloud
for n,topic in enumerate(topics):
    plt.figure()
    plt.imshow(WordCloud().fit_words(topics[n]))
    plt.axis("off")
    plt.title("Topic #" + str(t))
    plt.show()

But i get this error -
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-41-b1e5dc997973> in <module>()
      3 for n,topic in enumerate(topics):
      4     plt.figure()
----> 5     plt.imshow(WordCloud().fit_words(topics[n]))
      6     plt.axis("off")
      7     plt.title("Topic #" + str(t))

C:\ProgramData\Anaconda3\lib\site-packages\wordcloud\wordcloud.py in fit_words(self, frequencies)
    359         self
    360         """
--> 361         return self.generate_from_frequencies(frequencies)
    362
    363     def generate_from_frequencies(self, frequencies, max_font_size=None):  # noqa: C901

C:\ProgramData\Anaconda3\lib\site-packages\wordcloud\wordcloud.py in generate_from_frequencies(self, frequencies, max_font_size)
    378         """
    379         # make sure frequencies are sorted and normalized
--> 380         frequencies = sorted(frequencies.items(), key=itemgetter(1), reverse=True)
    381         if len(frequencies) <= 0:
    382             raise ValueError("We need at least 1 word to plot a word cloud, "

AttributeError: 'list' object has no attribute 'items'

<Figure size 432x288 with 0 Axes>

Sorry for making a mess here. I managed to make word clouds, here is the code if you want to incorporate.
from wordcloud import WordCloud
topics = topic_model.get_topics()
def make_wordcloud(topics):
    for n,topic in enumerate(topics):
        terms = dict(topics[n])
        wordcloud = WordCloud().generate_from_frequencies(terms)
        plt.figure()
        plt.imshow(wordcloud)
        plt.axis("off")
        plt.title("Topic #" + str(n))
        plt.show()

make_wordcloud(topics)

Thanks for your suggestion, you can close this issue. Have a good day.

Glad you got it figured out!


vscode 1.56 breaks extension sftp

Does this issue occur when all extensions are disabled?: Yes/No - It's an error in the extension sftp due to the upgrade.

VS Code Version: 1.56.2
OS Version: Windows 10

Steps to Reproduce:

Install sftp plugin by liximomo (It's the most popular sftp plugin)
uploading a file from your local machine to the remote machine throws an error. It says local file not found, even if it's successfully uploaded.
Multiple users are facing this issue:

https://github.com/liximomo/vscode-sftp/issues/915
https://stackoverflow.com/questions/67506693/vscode-error-no-such-file-sftp-liximomo-extension/67524099#67524099

/duplicate of #122325
1.56 shipped a newer version of nodejs. IMO the extension author needs to fix this or someone needs to fork and fix it there.


/firmware:at_command_uart

Contribution description
Sends at commands using uart from samr21 to esp32

Testing procedure
Look at ../m4a-firmware/firmware/libs/at_commands_uart

add in main.c  "at_uart.h" and config_at()
use in shell: make flash term
use at help

Issues/PRs references

none

:thinking:  This pull request got me thinking about testing procedures.

Rename the commit name please


How can I know the  builded filename of a lazy load page ?

Ionic version:  (check one with "x")
[ ] 1.x (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ x] 3.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[ x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Other information:

While in ionic3, if I made a page lazy load, after the build process, there will be a corresponding js file generated in the  www/build folder.
Now I want to customize my build process, for some reason I need to know the corresponding builded js filename of every lazy load page. What should I do?  For example, when PageA is lazy load, which file in www/build is the js filename of PageA.
I'm trying to read the source code of app-scripts, but if anyone of you guys can tell me, I think
the efficiency will be more higher.
Thanks for any help!

Hello! Thanks for opening an issue with us! As this seems like more of a support question I will urge that you ask this question on our forum or on our slack channel. Thanks for using Ionic!


Sizign and limits

What would be the limitations of this solution?
I would like to know what the limits can be of this solution. Like max numer of records returned in a query, max number of invocations in a day, max throughpunt of the blob storage connector and so on.
We (enterprise scale, 15k employees) are looking at an ingestion of about  1,3 Billion events/day concentrated during daytime. That would be about 30.000s event per second for 12 hours.
I don't even want to think about data volume (say 1 CEF event is about 1,5kB...1860 TB???)
We are never getting that to any Logic App configuration that we could afford...
Or are my figures nonsense?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: a0478806-aeb3-1ba0-7600-02e5ed72f8a4
Version Independent ID: 1aaf2c3d-f771-8522-ad54-63140a71e43b
Content: Archive data from Log Analytics workspace to Azure storage using Logic App - Azure Monitor
Content Source: articles/azure-monitor/logs/logs-export-logic-app.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @bwren
Microsoft Alias: bwren

Thanks for bringing this to our attention. We will investigate it further and update you shortly.

@andrePKI - Service limits article should help. Azure Monitor service limits
Ingestion article might have some relevance - Log data ingestion time in Azure Monitor
Please take a look and let me know if that helps.

@MonikaReddy-MSFT Hi Monika, Yes, thank you, the docs were helpful.
Although it would be nice to have some figures about the limits of this particular solution, some of which are already present on this page, maybe this is not the place for it. Anyway, we find that we can handle our requirements with this solution (not to mention I was a factor 1000 off - 1,8 TB instead of 1860 TB ;-)).


Customer to Agent(human bot)--> Chat not initiating properly

I am using bot human chat which communicate with facebook, there is no  issues when single FB customer with BOT, but while connecting multiple FB customers with BOT we are facing the issue.
The Chat initiated to Agent  but FB customer receiving message us"backchannel"  and Agent trying to chat with customer if he types any messages it is asking the questions configured for customer.
kindly help us to resolve the issue also  Bot Agent screen is not working in IE11 browser please confirm is these options will support in IE

These do not appear to be issues specific to the Web Chat control, but rather integration issues in your larger application. Unfortunately we can't help with those sorts of questions here. I suggest you ask for help on Stack Overflow, where you will definitely need to provide a lot more information and code snippets if you'd like help.


23M Parameter Model

Hi, and fantastic work!
The paper mentions a smaller, 23M parameter model. Is this model available for download? Thanks!

Hi, thanks for your kind words! We are preparing the release for the 23M model and will update once it is ready.

Fantastic! Looking forward :-)


Does not recognize some built-in functions

Neither reduce nor reload for instance.

What Python version are you using? Sure it's not python3?
Both reduce and reload are deprecated and have been removed from Python3.

I am using ptpython with python3.4 but checked reduce using python2.7.  Not a bug!

On Fri, Nov 20, 2015 at 7:27 AM, Jonathan Slenders<EMAIL_ADDRESS>
wrote:

What Python version are you using? Sure it's not python3?

Python3.4. I closed the issue at github. Sorry for the noise but thanks
for ptpython.
--
I have seen the future and I'm not in it!


chore(CPlusPlus):Totient function. (Number of integers that are coprime with n)

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[x] New algorithm
[ ] Optimization in previous algorithms
[ ] Code style update
[ ] Refactor
[ ] Documentation
[ ] Other, please describe:

Briefly describe the changes in this PR

Other information:

I have added totient function file @ming-tsai


adding tests and numbered sections

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@29a4a84). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #55   +/-   ##
=========================================
  Coverage          ?   82.09%
=========================================
  Files             ?        2
  Lines             ?      229
  Branches          ?        0
=========================================
  Hits              ?      188
  Misses            ?       41
  Partials          ?        0

Flag
Coverage Δ

#pytests
82.09% <0.00%> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29a4a84...49a7970. Read the comment docs.


Feature: A way to view full parameter documentation with binding

Hey! This plugin is awesome! Super useful. I was wondering if it'd be possible to implement something so that we can toggle between showing the full lsp signature window and just the virtual text. This would be useful since sometimes the popup window obscures the cursor, and being able to toggle between the two would be really useful.
Thanks again for this plugin!

Is it similar to issue #140 ?
ATM toggle key will toggle popup floating windows no matter floating window is enabled or not.

Oh sorry didn't see that, thanks a lot!

This may be unrelated, but when I map the toggle key to <C-i>, I cant seem to insert tabs into my code. When I map it to anythign else it works, is there a reason for this? Im assuming it's neovim related.


TypeError w/ repr when using plone/zope

A user reports that whenever an OPTIONS request is made to a Plone application (running Zope) this issue occurs:
==> client2-event.log <==
------
2018-11-27T09:58:57 ERROR Zope.SiteErrorLog<PHONE_NUMBER>.330.238564883427 https://website.com/file.txt
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.BaseRequest, line 479, in traverse
Module zope.browserresource.file, line 94, in browserDefault
AttributeError: 'FileResource' object has no attribute 'OPTIONS'
------
2018-11-27T09:58:57 ERROR sentry.errors.serializer unbound method __repr__() must be called with Application instance as first argument (got nothing instead)
Traceback (most recent call last):
File "/home/plone/eggs/raven-6.8.0-py2.7.egg/raven/utils/serializer/manager.py", line 76, in transform
return repr(value)
TypeError: unbound method __repr__() must be called with Application instance as first argument (got nothing instead)
------
2018-11-27T09:58:57 ERROR sentry.errors.serializer unbound method __repr__() must be called with Application instance as first argument (got nothing instead)
Traceback (most recent call last):
File "/home/plone/eggs/raven-6.8.0-py2.7.egg/raven/utils/serializer/manager.py", line 76, in transform
return repr(value)
TypeError: unbound method __repr__() must be called with Application instance as first argument (got nothing instead)

This has also been reported here.

The issue is silenced already it’s just that the logger still shows up. Just silence the error logger in this case.
The actual bug is somewhere in zope.


Fix snake case for 1d/2d/3d suffix

In responding to https://github.com/pygfx/pygfx/issues/863, I realized that  gfx.renderers.wgpu.set_wgpu_limits(max_texture_dimension_3d=...)  does not work, but  gfx.renderers.wgpu.set_wgpu_limits(max_texture_dimension3d=...) does. While in fact wgpu uses the former notation, as is shown in the error message:
Caused by:
  Limit 'max_texture_dimension_3d' value 3000 is better than allowed 2048

This PR fixes that, and keeps the old notation working too: max_texture_dimension3d still resolves to maxTextureDimension3D.
We have two implementations of to_snake_case() and to_camel_case(), because the codegen does not import from wgpu. This PR also makes them the same again (the diverged a little.
The codegen is actually not affected. Only the way that custom limits and such are handled.

Locally the failing test works. I'll wait for the nice diff error in #614.


TODO: Add this image to "Why reproducible neuroimaging"

After the 4 core actions and before the "How does ReproNim support reproducible neuroimaging" section

https://dev.repronim.org/about/why/
I've added it, but the image is low resolution (a bit fuzzy) and the margins are a big. I'll close for now, but if you can get a better image we should replace


Handling potentially missing browser API usage

Can we force some kind of rules/checks to make sure that at least browser facing code checks for API existence?
From @johnbley comment

Can we use type rules to encode this uncertainty and force code trying to access (e.g.) performance.getEntriesByType (but not, say, a "baseline" API like addEventListener) to first check for its existence/deal with it being missing? This would move the necessary checks to just a handful of places accessing newer APIs and mostly look like the existing if blocks in there already. If this is feasible (and my understanding of Typescript suggests that it is, though the tooling might get messy) and has community backing, we can take on the work of auditing the browser API set used and creating these rules.

I think that would be a correct approach.I'm just wondering if we could simply have something like isSupported function where we can check for existence of needed api. if that returns false, then we don't use the instrumentation at all - stop it at the very beginning (enable function for example?). It would be just few lines without changing so much code in many other places


Improve duplicate detection to use depth information

The score remains unaffected (less than 0.1% improvement), the duplicate detection is now improved.
Check borehole profile A525.pdf to see the changes.
Overall logic:
If there is depth information for a given layer --> use that information to detect duplicates.
If there is no depth information for a given layer --> use template matching.
I argue to keep template matching in the logic, as there are borehole profiles that do not have depth columns, and many layers may not have any depth-information assigned. Especially older borehole profiles, sometimes come with a visual representation of depth information and I believe template matching is still the best way to go in that case.

The behaviour for A525 page 1-2 is somewhat suboptimal. We have a situation like
Page 1  duplicate detected   Page 2
 a
 b
 c      ------------------    C
 d      ------------------    D
 e                            E
 f                            F
                              G
                              H

Layers "e" and "f" are included in the output for both page 1 as well as page 2, even though we could infer from the previously detected duplicates higher up ("c" and "d"), that these layers must be duplicates as well.
Something for a follow-up ticket probably, as I don't currently see an easy fix for this.

There is a mistake indeed. I am not sure whether the current approach works super well for these long profiles. We're somewhat sensitive to mistakes in the depth column.
I would suggest we accept this error for now.

Could you create a follow-up ticket for the A525.pdf case?
Is it necessary to repeat the definition of the log format in every file, or is it possible to define that in a single place?

Regarding 2:
It is possible to remove the config statements. We just need to make sure, that the config is defined before any logging statements are done. In our case, we probably are always going to execute main.py and it's sufficient to define logging therein. I adjusted it this way.
Another solution would be do define logging in the init.py file and import stratigraphy at the beginning. Then we factor that out of the main code.


What is SlidingDataSource for?

Is it part of Chatto's framework architecture or the Chatto app way of handling messages?

It lives in ChattoApp so it is not part of Chatto's framework. It's just a PoC for the demo app that shows a way to deal with thousands of messages in a performant way.

Got it. Thanks! 👍


Added a list of Prebid Server adapters

This is a proof-of-concept to show how docs can be dynamically generated using the Prebid Server API.
This just adds a list of Prebid Server bidders to the top of the page. When we release new versions, it will update automatically.
I know @jeanstemp plans to revamp the PBS pages in general, so I'm sure there are better places than this... but at the moment, I don't really know where they would be :x.

This is an interesting approach - when is the PBS API hit -- assuming every time Jekyll builds/caches the underlying HTML files?

It's called by the browser any time a user loads the page.


Scanning a CycloneDX sBOM results in No package sources found error

As of version 1.3.0, when scanning a CycloneDX generated sbom the osv-scanner tool shows the following error:
No package sources found, --help for usage information. When using version 1.2.0 the scan is successful.
Steps to Reproduce

Generate a CycloneDX sBOM (We use the following: https://www.npmjs.com/package/%40cyclonedx/cyclonedx-npm)
Use osv-scanner to scan the sbom (/go/bin/osv-scanner sbom.json)

Expected Results
osv-scanner should scan the sbom and report on vulnerabilities
Actual Results
root@cec9522aeabf:/build# /go/bin/osv-scanner --sbom auditjs.json
No package sources found, --help for usage information.
root@cec9522aeabf:/build# echo $?
128

For reference the sBOM I used is attached
auditjs.json.zip

This is likely caused by v1.3.0 now also identifying/filtering cyclonedx sboms by file names (i.e. https://cyclonedx.org/specification/overview/#recognized-file-patterns).
#339 has been merged recently and will be included in the next release (scheduled for next week) to skip the file name filtering if passed directly with the --sbom flag.

Fixed by 1.3.2 release


"default" property value not always validated

See example in #67

The issue seems to be that constraints are not copied over for the default Value instance.


add ApplicationId to Registered Server Update params

Choose a PR Template
Switch to "Preview" on this description then select one of the choices below.
Click here to open a PR for a Data Plane API.
Click here to open a PR for a Control Plane (ARM) API.

API change check
APIView has identified API level changes in this PR and created following API reviews.
Microsoft.StorageSync

@ankushbindlish2, @stefong99: This PR should not have been merged without making the changes I requested.  I intended to block the PR with my review, but I may have forgotten to do so.


Fix donut chart if ratio between first and second value is very small

Fixes https://github.com/gionkunz/chartist-js/issues/527 "donut chart not rendered correctly if ratio between first and second value is very small"

Hi Hannes, thanks for the awesome PR!

You're becoming MVC :-) Most valuable contributor ;-)


[Refactor] Main code modification for coordinate system refactor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Coordinate systems for the three types of bounding boxes need refactoring because of the inconsistency in the yaw angle and box dx, dy, dz. The code for bounding box operations are also a bit messy.
Modification
This pr contains most code modification for the coordinate system refactor. Docstring and comments refinements, tutorial, and the addition of a data conversion script will follow.
BC-breaking (Optional)
This PR seriously breaks BC. We will need to update the whole model-zoo, and instruct users to update the preprocessed datasets as well after the whole refactor is done.
Use cases (Optional)
If this PR introduces a new feature, it is better to list some use cases here, and update the documentation.
Checklist

Pre-commit or other linting tools are used to fix the potential lint issues.
The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
If the modification has potential influence on downstream projects, this PR should be tested with downstream projects.
The documentation has been modified accordingly, like docstring or example tutorials.

Awesome job! Maybe we need to regress the benchmark for vision-only methods, such as FCOS3D and ImVoxelNet

Sure.

ImVoxelNet, FCOS3D, GroupFree3D benchmarked.


fix: don't extract http:, https:, data: and hash only urls as assets

Fixes #233
Points to note:

data: URLs are actually extracted as asset imports (not ignored) before this change.
I also ignored http: and https: URLs, they should be external resources, not part of module resolution.
I can't find where prefixes are added, so -webkit-filter:url(packages/babel-preset/__fixtures__/assets/a.svg#a); is still incorrect.

I can't find where prefixes are added, so -webkit-filter:url(packages/babel-preset/fixtures/assets/a.svg#a); is still incorrect.

Interesting that it's not processed in the same way, I will check later...

I can't find where prefixes are added, so -webkit-filter:url(packages/babel-preset/__fixtures__/assets/a.svg#a); is still incorrect.

I know, the whole CSS block is passed into replaceAssetsWithImports as one string, ".fv04sme{-webkit-filter:url(packages/babel-preset/__fixtures__/assets/a.svg#a);filter:url(packages/babel-preset/__fixtures__/assets/a.svg#a);}" in this case, so it contains two url(), but the Regex only matched the later one.
It may be difficult to correctly parse the block.

Now it also has problem with multiple URLs like backgroundImage: "url(./a.png), url(./b.png)" (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Backgrounds_and_Borders/Using_multiple_backgrounds), only the last one is extracted. maskImage and filter also supports multiple values.
The best solution might be to use a CSS parser for semantically parsing the input and handle each rule differently. Considering the complexity, I don't think I will have time to complete that.

The best solution might be to use a CSS parser for semantically parsing the input and handle each rule differently. Considering the complexity, I don't think I will have time to complete that.

Good call, I will look into it 👀

The best solution might be to use a CSS parser for semantically parsing the input and handle each rule differently. Considering the complexity, I don't think I will have time to complete that.

No worries, I created an issue #238 and you can check a fix in #237. Once the fix will be merged I will rebase your changes 😉

@yume-chan #237 was merged, do you need help with rebasing changes?

@layershifter I have rebased main into my branch and it's ready to be reviewed.

Released in<EMAIL_ADDRESS>&<EMAIL_ADDRESS>🚢


Cleanup remnant eslint usage

Summary
Remnant usage of eslint should be renamed to stylelint. Tests did not fail previously because we were also checking for eslint at the time. This change updates our tests to check for stylelint and therefore the tests should still pass.
Testing Done

Already fixed in main.


Split matching into match() and search()

Coverage decreased (-8.6%) to 86.317% when pulling 4f3de29fed17f95116cf9b868a25012323a08808 on search into bdabaf71537835791520727fbb0645d2542ac063 on develop.

Adding PhpUnit @cover annotation focuses coverage on certain classes, and doesn't mark other used elements as covered.
However they're all tested.


Add padding top and bottom to the Button component

When Button has multiple line with text, there should be a top and bottom padding.

This is blocked by #1696, or should be done in that PR directly.

This might break Button used as an "icon button". Make sure to test the stories and judge how it looks.
Most likely a BREAKING CHANGE for our users as it changes current expected behaviour.

Which spacing token should this padding be @mrosvik ?

Small
padding top and bottom: spacing-2
Medium
padding top and bottom: spacing-3
Large
padding top and bottom: spacing-3

Could this wait until after V1?

Small padding top and bottom: spacing-2
Medium padding top and bottom: spacing-3
Large padding top and bottom: spacing-3
Could this wait until after V1?

spacing-3 does not work with medium Button as its forces if bigger in combination with text size.

@mrosvik Reduced it to spacing-2 for medium, you can have a look here: https://storybook-pr-1910.dev.designsystemet.no/

LGTM :)
Large

Medium:

Small:


Xin : Asynchronous programming : 3 weeks

stop watch
Learning Objectives

[x] You understand the JavaScript Event Loop, and can demonstrate this by using setTimeout and setInterval to schedule simple tasks.
[x]  You can explain why Asynchronous Programming is important for programs that have blocking and non-blocking tasks.
[x]  You can explain the basics of the Client/Server model and HTTP requests and can fetch data from RESTful APIs.
[x] You can break down an asynchronous problem into smaller tasks and solve it using promises. This includes identify which tasks depend on each other and which are independent:

dependent tasks: The return value from one task is required to start the next task, these must be completed in a specific order - .then
independent tasks: These tasks do not use each other's return values, they can be completed at the same time - Promise.allsystem.

[x]  You can fetch data from an API and render it into the DOM using /api-calls, /handlers and async/await syntax.
[x]  You can write unit tests for functions that return promises using async/await syntax.

Week 3
I Need Help With:
Nothing
What went well?
I finished the project get post and had better understanding of how API works
What went less well?
I always forget to put await syntax within aysnc functions, something to remember.
Still has problem building more complex applications, need more practise.
Lessons Learn
1.how to fetch data with promises and consumers
2.how to parse and make use of the data
3.how to build basic application with APIs

putting  await is super important , you will get use to it.