simPod
Repos
177
Followers
48
Following
60

Grafana datasource to load JSON data over your arbitrary HTTP backend

295
62

PHP ClickHouse Client over HTTP

11
1

Set of utilities to power up your development with webonyx/graphql

11
3

PHP factory for creating JSON RPC 2.0 PSR-7 requests

0
0

PHP Kafka boilerplate wrapper around RdKafka

4
0

Test Utils for PHP to facilitate writing tests

3
2

Events

Created at 8 hours ago
Created at 8 hours ago
Requests with params containing ":" character

Hello,

I would like to request an API but params require a ":" character. Something like : /api/search?query=toto:chips+tata:bacon

In grafana, I've created the new source with the url /api/search And when I create a new panel with params :

key : query
value : toto:chips+tata:bacon

It doesn't work.

I also tried :

key : query
value : toto%3Achips+tata%3Abacon

But still doesn't work

Is there a way to make it work ?

Thanks Have a good day,

Created at 13 hours ago
pull request closed
chore(deps): update dependency eslint-plugin-jsdoc to v40.1.1

Mend Renovate

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | eslint-plugin-jsdoc | 40.1.0 -> 40.1.1 | age | adoption | passing | confidence |


Release Notes

v40.1.1

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Created at 15 hours ago
simPod delete branch renovate/eslint-plugin-jsdoc-40.x
Created at 15 hours ago

chore(deps): update dependency eslint-plugin-jsdoc to v40.1.1 (#57)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

Created at 15 hours ago
delete branch
simPod delete branch patch-1
Created at 1 day ago
Requests with params containing ":" character

Dunno, something that tells us what's wrong.

Try to reproduce. There's example server you can use https://github.com/simPod/GrafanaJsonDatasource/tree/0.6.x/examples/server

Created at 1 day ago
Requests with params containing ":" character

Can you investigate why it "doesn't work"?

Created at 2 days ago
delete branch
simPod delete branch ban-phpunit-annotations
Created at 2 days ago

feat: ban phpunit's annotations (#108)

Use Attributes instead (since PHPUnit v10). Older PHPUnit's versions will not be supported.

Created at 2 days ago
pull request closed
feat: ban phpunit's annotations

Use Attributes instead (since PHPUnit v10). Older PHPUnit's versions will not be supported.

Created at 2 days ago

chore(deps): update actions/stale action to v8 (#399)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

Created at 1 week ago
pull request closed
chore(deps): update actions/stale action to v8

Mend Renovate

This PR contains the following updates:

| Package | Type | Update | Change | |---|---|---|---| | actions/stale | action | major | v7 -> v8 |


Release Notes

v8

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Created at 1 week ago
simPod delete branch renovate/actions-stale-8.x
Created at 1 week ago
issue comment
[Bug?]:`yarn node script.js` works while preloading `pnp.cjs` does not

That helped, thanks. There was experimental loader specified additionally.

Created at 1 week ago
closed issue
[Bug?]:`yarn node script.js` works while preloading `pnp.cjs` does not

Self-service

  • [ ] I'd be willing to implement a fix

Describe the bug

Neither of these commands

NODE_OPTIONS="--require $(pwd)/.pnp.cjs" node client/script.mjs

node -r './.pnp.cjs' client/script.mjs

work.

node:internal/process/esm_loader:100
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'arg' imported from /path/client/script.mjs
Did you mean to import arg-npm-5.0.2-2f5805a547-6c69ada1a9.zip/node_modules/arg/index.js?
    at new NodeError (node:internal/errors:399:5)
    at packageResolve (node:internal/modules/esm/resolve:794:9)
    at moduleResolve (node:internal/modules/esm/resolve:843:20)
    at defaultResolve (node:internal/modules/esm/resolve:1058:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:416:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

yarn node client/script.mjs works though.

To reproduce

// Sherlock reproduction. For instance:
await packageJsonAndInstall({
  dependencies: {
    [`arg`]: `^5.0.2`,
  },
});

import arg from 'arg';

Environment

System:
    OS: macOS 13.2.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 19.6.1 - /private/var/folders/11/2hy99kxj3tz2gtv5khgnt2y80000gn/T/xfs-b650c0ca/node
    Yarn: 3.4.1 - /private/var/folders/11/2hy99kxj3tz2gtv5khgnt2y80000gn/T/xfs-b650c0ca/yarn
    npm: 9.4.0 - /opt/homebrew/bin/npm

Additional context

I cannot use yarn node with pm2 cluster mode.

Same behaviour is on latest canary.

Created at 1 week ago
delete branch
simPod delete branch throw
Created at 1 week ago

feat: improve Map::get() @throws inference

Created at 1 week ago

feat: improve Map::get() @throws inference

Created at 1 week ago

feat: improve Map::get() @throws inference

Created at 1 week ago

feat: improve Map::get() @throws inference

Created at 1 week ago

feat: improve Map::get() @throws inference

Created at 1 week ago

feat: improve Map::get() @throws inference

Created at 1 week ago
pull request opened
feat: improve `Map::get()` @throws inference

Opening based on https://github.com/phpstan/phpstan/issues/9066, hope it's correct place where to put the extension

Created at 1 week ago
create branch
simPod create branch throw
Created at 1 week ago
opened issue
ExtDs `Map::get()` dynamic throws

Feature request

I wrote this extension to have better throws inference from \Ds\Map::get(). I wonder if there's a way to somehow make it into phpstan's core so I don't have to copy this extension into every project?

use Ds\Map;
use PhpParser\Node\Expr\MethodCall;
use PHPStan\Analyser\Scope;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Type\DynamicMethodThrowTypeExtension;
use PHPStan\Type\Type;

use function count;

final class ExtDsThrowExtension implements DynamicMethodThrowTypeExtension
{
    public function isMethodSupported(MethodReflection $methodReflection): bool
    {
        return $methodReflection->getDeclaringClass()->getName() === Map::class
            && $methodReflection->getName() === 'get';
    }

    public function getThrowTypeFromMethodCall(MethodReflection $methodReflection, MethodCall $methodCall, Scope $scope): Type|null
    {
        if (count($methodCall->args) < 2) {
            return $methodReflection->getThrowType();
        }

        return null;
    }
}
Created at 1 week ago

Improve array_search type specifier performance

Merge branch '1.8.x' into 1.9.x

Add @phpstan-self-out support

Add compatibility rule

Fix CS

Temporary Rector fix

Fix custom rule

InClassMethodNode - contains ExtendedMethodReflection

Improve consistency

always handle native types in assignVariable

fix nativeTypes of enterAnonymousFunctionWithoutReflection

always specify native types

finish TODO. duplicated assign for ArrayDimFetch

add native expression tests

cases from

  • https://github.com/phpstan/phpstan-src/pull/1802#issuecomment-1272396669
  • https://github.com/phpstan/phpstan-src/pull/1802#issuecomment-1272472873
  • https://github.com/phpstan/phpstan/issues/6260

Fix BooleanAndConstantConditionRule and BooleanOrConstantConditionRule

Everyone can use getNativeType()

Fix UnreachableTernaryElseBranchRule

Fix UnreachableIfBranchesRule

Fix CS

Rebase fix

Created at 1 week ago