no-relative-parent-imports does not work at all? (repro repo included)

I can't seem to get this rule to work. I'm using the @typescript-eslint/parser
Example repo: https://github.com/sarink/eslint-plugin-import-no-relative-parent-imports-bug
I believe the relevant lines from the debug log are:
2020-01-14T20:05:00.042Z eslint:file-enumerator Yield: child.ts
2020-01-14T20:05:00.042Z eslint:cascading-config-array-factory Load config files for /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children.
2020-01-14T20:05:00.042Z eslint:cascading-config-array-factory Cache hit: /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children.
2020-01-14T20:05:00.042Z eslint:cli-engine Lint /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children/child.ts
2020-01-14T20:05:00.042Z eslint:linter Linting code for /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children/child.ts (pass 1)
2020-01-14T20:05:00.042Z eslint:linter Verify
2020-01-14T20:05:00.042Z eslint:linter With ConfigArray: /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children/child.ts
2020-01-14T20:05:00.075Z eslint:linter Generating fixed text for /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children/child.ts (pass 1)
2020-01-14T20:05:00.075Z eslint:source-code-fixer Applying fixes
2020-01-14T20:05:00.075Z eslint:source-code-fixer shouldFix parameter was false, not attempting fixes
2020-01-14T20:05:00.076Z eslint:file-enumerator Leave the directory: /Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/children
2020-01-14T20:05:00.076Z eslint:ignore-pattern Check {
  filePath: '/Users/sarink/Projects/eslint-plugin-import-no-relative-parent-imports-bug/src/parent.ts',
  dot: false,
  relativePath: 'src/parent.ts',
  result: false
}

It looks like the plugin is seeing "src/parent.ts", but in fact in the code it is written like "../parent"?
Thanks!

Bump? :(

I'm not sure how to further debug it, do you have any suggestions?

@ljharb I made a pull request, but you might want to look carefully at it, I couldn’t figure out how to add tests for this

@sarink I can't reproduce the issue in your example repo.

Just bumped into this as well. Looks like workaround is easy, use common rule?
'no-restricted-imports': [
  'error',
    {
      patterns: [
        '../*',
      ]
    }
],

Better yet:
{
  "no-restricted-imports": [
    "error",
    {
      "patterns": [
        {
          "group": ["../*"],
          "message": "Relative imports from parent directories are not allowed."
        }
      ]
    }
  ]
}

Better yet:
{
  "no-restricted-imports": [
    "error",
    {
      "patterns": [
        {
          "group": ["../"],
          "message": "Relative imports from parent directories are not allowed."
        }
      ]
    }
  ]
}


pacman: mirror list out of date

Sometimes mirrors go out of date and no longer work when running update. The error looks like failed to connect to archlinux mirror {OLD_MIRROR}:80 no route to host. To fix this I searched for {OLD_MIRROR} in /etc/pacman.d/mirrorlist and found it at the top of the list. I switched it with the second mirror in the list.
After some brief searching on the issue it looks like it's possible to retrieve an updated list of mirrors and then sort them by speed using an arch package called reflector. It's not clear to me if reflector can get the new mirrorlist as well. Examples don't indicate to me that it can. Reflector can also be set up to run as a hook in pacman. Examples are on the arch wiki.
I'd like my OS to update it's mirrorlist and sort it by speed automatically before updating so that this doesn't require manual intervention again.

relevant links:

https://www.garron.me/en/go2linux/how-to-find-the-fastest-archlinux-mirrors.html
https://www.archlinux.org/packages/core/any/pacman-mirrorlist/
https://wiki.archlinux.org/index.php/Reflector

I have a command to do this. I can share it with you when I get back from my trip tomorrow.
(I have a few other tweaks as well that I'm overdue on opening PRs for.)

Sorry for the delay. This is the command that I prefer:
sudo reflector --verbose --protocol https --age 8 --sort rate --save /etc/pacman.d/mirrorlist


Upgrade zippy dependency

The zippy version in composer.json is quite old, was there a reason for this or can it be bumped to a
version that supports Symfony 4? (alchemy/zippy ~0.4.9 afaics)
See:
https://github.com/alchemy-fr/Zippy/commit/bd83a226e2b360ec5737ffa85f0f31fdc3f87531

Looks like there's still some issues with it: https://github.com/alchemy-fr/Zippy/issues/142

thanks


Leverage Slog And Or Log For Debugging Output

There is some debugging information that is getting outputted in the graphql_input_object macro namely on line 70. Either, logging framework like Slog or Log should be used for outputting debugging information or this line and others like it should be removed.

I think that all println! not in tests or the example should be removed - I probably accidentally committed them :)
It might be a good idea to support e.g. Slog in the executor, just so that an application developer can get a useable trace from Juniper if they're trying to debug field execution or something.

Not gonna promise anything as might overload turkey, but I'll try to get this done on the weekend. @theduke, @mhallin  or @LegNeato any strong opinions on what should be logged? I guessing we should use Slog as that looks like to be the de facto for logging.

@piperRyan - did you end up making any progress on this? I was looking for a way to contribute and this seemed like a good path

@RussTheAerialist  Unfortunately I have been quite busy, so if you wanted to tackle this one you can go ahead! :)

Continued in #423 .


Actions UI on macOS Mojave

Hello! I just noticed on macOS the close, maximize and minimize icons are not centered like in the screenshots. Bothers me a bit.

Used the browser toolbox to align them by adding this to the end of the global.css:
#titlebar-buttonbox {
	margin-top: -4px !important;
	margin-left: 10px !important;
}

I would have done a PR, but not sure if this messes up the buttons on Windows/Linux version... gotta test soon on Windows computer, will do a PR then.

So yeah, it lifts up the buttons on Windows as well and not looking that good. If anyone figures out a general solution to this it would make this theme better. While waiting, the hotfix above works on a Mac.

A bit late to the party (sorry) but the issue stems from unchecking the drag space customisation option. Should hopefully be fixed in latest commit.


Failed to transform file 'okhttp-3.13.1.jar' to match attributes

Good bug reports include a failing test! Writing a test helps you to isolate and describe the problem, and it helps us to fix it fast. Bug reports without a failing test or reproduction steps are likely to be closed.
Here’s an example test to get you started.
https://gist.github.com/swankjesse/981fcae102f513eb13ed
Failed to transform file 'okhttp-3.13.1.jar' to match attributes {artifactType=android-dex, dexing-is-debuggable=true, dexing-min-sdk=15} using transform DexingTransform

Error while dexing.

Thanks for your question. This issue tracker is only for bug reports with test cases and feature requests. Please ask usage questions on Stack Overflow.
https://stackoverflow.com/questions/tagged/okhttp


certificate error when trying to load boot2docker

When the Mac client tries to connect to docker repo, the certificate is not trusted for the listed IP

Are you behind a proxy? The ssl shows as correct and from a trusted source on my end

closing due to no reply. Please reopen if necessary


Fix misspelling

It doesn't seem to be a misspelling 😕 Aren't they just referring to "their" expirience, as in "React was  used internally by our own teams working on Facebook/Instagram", hence "us"?

Good catch. I was reading too quickly and forgot that the react team works at Facebook.


Enhancement | E- Filing | Validate door number length

Describe the bug
Validate Door Number Length: Set the minimum length for door number to 1 character.

Hi @devarajd94 this issue is fixed and working as expected, Please verify and confirm once
Reference Link: https://jam.dev/c/d32583dd-3724-4ae5-9715-ba69d67b62cb

Hi @Ramu-kandimalla, @devarajd94 This issue is resolved in UAT.

TEST Scenarios

-Litigant
-Advocate

Refer Screenshots


The plugin does not do a thing

With this css:
h1 {
  position: absolute;
  display: block;
  float: right;
  color: black;
  background-color: blue;
  border: 1px black solid;
}

This configuration (basically copy/pasta).
{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-rational-order"
  ],
  "plugins": [
    "stylelint-order",
    "stylelint-config-rational-order/plugin"
  ],
  "rules": {
    "order/properties-order": [],
    "plugin/rational-order": [true, {
      "border-in-box-model": false,
      "empty-line-between-groups": true,
    }]
  }
}

And the command:
stylelint --config config/.stylelintrc --fix fixtures/main.css

Strictly nothing happen.

same issue here :
I have this minimal config :
{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-sass-guidelines",
    "stylelint-config-rational-order"
  ],
  "rules": {
    "selector-class-pattern": ["[a-z]",{
      "resolveNestedSelectors": true
    }],
    "max-nesting-depth": [2, {}]
  }
}

When i run stylelint, I get the following output :

When I then run stylelint --fix, I have no output from styleint (like when all the warnings have been fixed). But there is no change in the files. And then when I rerun stylelint, I get the previous errors again

Weirdly, when i had this line to the config :
{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-sass-guidelines",
    "stylelint-config-rational-order"
  ],
  "rules": {
    "order/properties-alphabetical-order":  [false], // <-- This line
    "selector-class-pattern": ["[a-z]",{
      "resolveNestedSelectors": true
    }],
    "max-nesting-depth": [2, {}]
  }
}

The stylelint --fix works as expected. But then I get warnings from order/properties-alphabetical-order whereas it should be disabled by the config... Weird.

Ok, so after looking it up, it's not "[false]" to disable alphabetical-order, but "null".
So with this config :
{
  "extends": [
    "stylelint-config-standard",
    "stylelint-config-sass-guidelines",
    "stylelint-config-rational-order"
  ],
  "rules": {
    "order/properties-alphabetical-order":  null,
    "selector-class-pattern": ["[a-z]",{
      "resolveNestedSelectors": true
    }],
    "max-nesting-depth": [2, {}]
  }
}

The --fix is working as expected. But I don't understand why I have to add this line manually. Shouldn't the plugin do it for me ?


Adds new blog post on our components proof of concept

Is there a reason why there's a pile of CSS and other theme changes, too?

I had to rebuild a css change that allows us to actually see links as well as a shortcode to allow for an "aside" box. These were all intentional @autodidaddict and @brooksmtownsend


Fixes #4624 System Time Change - Leadership Deadlock & Socket Leaks

Fixes  #4624
To resolve the issue, we noted that there was a nested (and seemingly unnecessary) synchronized block causing the deadlock as described in #4624. To prove our theory, a machine was set up with marathon, mesos and zookeeper stack.
The marathon runnable JAR was rebuilt with the included fix and a systemd service was added to increment the system time by 10-20 seconds every 30 seconds. The system was then left for 24 hours. Marathon
correctly handled the Zookeeper timeout by abdicating leadership without hitting the described deadlock. After disabling the tool used to increment time, Marathon then stabilized.
We also noted that inside the synchronized block calls are made to the ElectionServiceBase.abdicateLeadership operation which itself is already protected with the synchronized keyword. The MarathonSchedulerService.startLeadership operation which contained the synchronized block is also protected itself with the synchronized keyword.
It seems that this block is not required although a review from a maintainer better versed in this asynchronous leader election system would provide valuable guidance.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

I think the point of that synchronized block was to protect driver since it's mutable. Looks possible to rewrite the code in order to obtain a reference to driver in a safe way, without wrapping the abdicate call in the same lock

I'm seconds away from posting a review where marathon will abort on loss of leadership. Will this still be relevant?

@jasongilanfarr We'd be happy to thoroughly test your changes in our environment.
We did a little re-factoring to solve the aforementioned deadlock then seen a similar issue where the JVM shutdown thread deadlocked on the CuratorElectionService after some successful abdications. Additional changes were made to work around this but we would prefer a simple abort as you have described.

@Brycelol I got sidetracked in master but this is in 1.3.x. Does this PR still make sense with the abort? We do have a timer that forces marathon to call halt() if exit doesn't complete in 10 seconds.

@jasongilanfarr As we were so close to production, I backported your fix to v1.3.0 because we didn't want to risk additional changes and noted that we still seen deadlocks. A working solution was to a) remove the calls to driver.foreach -> stopDriver inside stopLeadership and remove the synchronized annotation. Since doing this, marathon has correctly aborted on loss of leadership and stopped hitting deadlocks.
  override def stopLeadership(): Unit = {
    // invoked by election service upon loss of leadership (state transitioned to Idle)
    log.info("Lost leadership")

    leadershipCoordinator.stop()

    timer.cancel()
    timer.purge()

    // stop offering leadership.
    isRunningLatch.countDown()

    log.warn("Terminating after loss of leadership")
    Runtime.getRuntime.asyncExit()
  }

https://github.com/Brycelol/marathon/blob/b9f30b6056e4be22f9d564fd7041c1a44da42001/src/main/scala/mesosphere/marathon/MarathonSchedulerService.scala
The changes outlined in this pull request are now void and didn't actually solve the problem as intended so I can close it down. I will leave it open pending your response on the change we had to make.

The additional change you describe seems reasonable to me. Can you open a
PR for it against 1.3 (I'll crossport with my change for master). We are
likely going to spin a 1.3.7 soon.
I do think (but not sure) that my fix to asyncExit actually calling halt if
the system doesn't terminate in 10s should work around the deadlock, but
it's likely more robust to use the method you described.
On Wed, Nov 23, 2016 at 8:51 AM Gareth Bryce<EMAIL_ADDRESS>wrote:

@jasongilanfarr https://github.com/jasongilanfarr As we were so close
to production, I backported your fix to v1.3.0 because we didn't want to
risk additional changes and noted that we still seen deadlocks. A working
solution was to a) remove the calls to driver.foreach -> stopDriver inside
stopLeadership and remove the synchronized annotation. Since doing this,
marathon has correctly aborted on loss of leadership and stopped hitting
deadlocks.
override def stopLeadership(): Unit = {
// invoked by election service upon loss of leadership (state transitioned to Idle)
log.info("Lost leadership")
leadershipCoordinator.stop()

timer.cancel()
timer.purge()

// stop offering leadership.
isRunningLatch.countDown()

log.warn("Terminating after loss of leadership")
Runtime.getRuntime.asyncExit()

}
https://github.com/Brycelol/marathon/blob/b9f30b6056e4be22f9d564fd7041c1a44da42001/src/main/scala/mesosphere/marathon/MarathonSchedulerService.scala
The changes outlined in this pull request are now void and didn't actually
solve the problem as intended so I can close it down. I will leave it open
pending your response on the change we had to make.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mesosphere/marathon/pull/4627#issuecomment-262570148,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAweZpyCLniRKq_0xsQEpP-waYr0_oRTks5rBG8PgaJpZM4KjOJ8
.

@jasongilanfarr Certainly, I will do that. If I recall correctly, without the aforementioned changes, the deadlock occurred when attempting to call stopLeadership which is why we didn't get through to your asyncExit() with associated JVM halt fix.
Closing this PR as discussed.


unable to copy to system clipboard

I think I have followed the instructions as they are set
I have
~/.tmux.conf
setw -g mode-keys vi
set-option -g status-position top
set -g set-clipboard on

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

I installed xsel
 $  sudo apt-get install xsel
[sudo] password for jace:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
xsel is already the newest version (1.2.0+git9bfc13d.20180109-4).

but when I am in tmux and I do Ctrl+B, [ and then hit [Space], make my selection and then do y, I don't think the selection was copied to the system clipboard, just the tmux-yank clipboard.
If I do Ctrl+V, I see something else get pasted. I can only what I selected above get pasted if I do Ctrl+B, ] in tmux.
What am I doing wrong?
I am on tmux 3.3a on a PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"

I could not reproduce this on debian 12. Are you sure you pressed <prefix>I(that's a capital I) to make tpm install the plugins? Does <prefix>y in normal mode(not in copy mode, that is, after you pressed <prefix>[) show a message saying 'Line copied to clipboard!'?

I am having the exact same issue on Ubuntu 22.04 with xorg and tmux version 3.2a
I have done both <prefix>I and <prefix>U to install and update tmux-yank. Also installed xsel version 1.2.0.
I see Line copied to clipboard output on tmux status bar when I do <prefix>y but cant paste anything back from system clipboard (e.g. into the web browser)

See if adding set -g @override_copy_command 'xsel -b' to the top of your tmux config file fixes it. Make sure you reboot.
If it does work, it's might be because you have the wl-copy command available on your system and you are not currently running wayland. This happens because currently this plugin is configured to pick the first available command from a list; it doesn't check whether you are running wayland or X. It's something that could be improved on, for sure.

Yeah, that solved it thanks.

@returnDanilo finally got around to trying your solution and yea, it works on my system too. thanks so much 🙏🏿


/ws/notifications - undefined method `fetch' for nil

[----] I, [2016-09-08T08:45:11.436684 #3703:3fb6835b8b7c]  INFO -- : Finished "/ws/notifications" [WebSocket] for ::1 at 2016-09-08 08:45:11 +0000
[----] E, [2016-09-08T08:45:11.438769 #3703:3fb6835b8b7c] ERROR -- : There was an exception - NoMethodError(undefined method `fetch' for nil:NilClass)
[----] E, [2016-09-08T08:45:11.438869 #3703:3fb6835b8b7c] ERROR -- : /home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/configuration.rb:24:in `pubsub_adapter'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/base.rb:72:in `block in pubsub'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/base.rb:72:in `pubsub'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/base.rb:52:in `pubsub'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/channel/streams.rb:112:in `pubsub'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/channel/streams.rb:106:in `block in stop_all_streams'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/channel/streams.rb:105:in `each'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/channel/streams.rb:105:in `stop_all_streams'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:382:in `block in make_lambda'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:242:in `block in simple'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:456:in `block in call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:456:in `each'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:456:in `call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:448:in `block (2 levels) in around'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:286:in `block (2 levels) in halting'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/execution_wrapper.rb:72:in `wrap'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/engine.rb:66:in `block (3 levels) in <class:Engine>'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:391:in `instance_exec'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:391:in `block in make_lambda'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:285:in `block in halting'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:447:in `block in around'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:455:in `call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:750:in `_run_unsubscribe_callbacks'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/channel/base.rb:175:in `unsubscribe_from_channel'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/subscriptions.rb:44:in `remove_subscription'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/subscriptions.rb:57:in `block in unsubscribe_from_all'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/subscriptions.rb:57:in `each'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/subscriptions.rb:57:in `unsubscribe_from_all'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/base.rb:182:in `handle_close'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker.rb:58:in `block in invoke'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker.rb:39:in `block in work'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:126:in `call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:455:in `call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:448:in `block (2 levels) in around'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:286:in `block (2 levels) in halting'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker/active_record_connection_management.rb:14:in `block in with_database_connections'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/connection/tagged_logger_proxy.rb:24:in `tag'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker/active_record_connection_management.rb:14:in `with_database_connections'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:382:in `block in make_lambda'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:285:in `block in halting'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:447:in `block in around'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:455:in `call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:448:in `block (2 levels) in around'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:286:in `block (2 levels) in halting'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/engine.rb:60:in `block (4 levels) in <class:Engine>'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/execution_wrapper.rb:76:in `wrap'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/engine.rb:55:in `block (3 levels) in <class:Engine>'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:391:in `instance_exec'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:391:in `block in make_lambda'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:285:in `block in halting'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:447:in `block in around'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:455:in `call'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:101:in `__run_callbacks__'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:750:in `_run_work_callbacks'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-<IP_ADDRESS>/lib/active_support/callbacks.rb:90:in `run_callbacks'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker.rb:38:in `work'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker.rb:56:in `invoke'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/actioncable-<IP_ADDRESS>/lib/action_cable/server/worker.rb:51:in `block in async_invoke'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:348:in `run_task'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:337:in `block (3 levels) in create_worker'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `loop'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:320:in `block (2 levels) in create_worker'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `catch'
/home/himdel/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/concurrent-ruby-1.0.2/lib/concurrent/executor/ruby_thread_pool_executor.rb:319:in `block in create_worker'

bin/setup

bin/setup should do the work, or cp config/cable.yml.sample config/cable.yml


Prototypes for benchmarking

Workflow/live stream prototypes for benchmark testing.
There are two prototypes.

prototype_mini
prototype_kafka

Closing this in favor of #94


Php v8.2.4 support?

When are you going to give php 8.2.x support? I am not able to install this right now

Hi @mehmetsen80 I am running it on 8.2 myself and there composer requirement is ^8.0 which includes 8.2 (see https://github.com/endroid/qr-code/blob/master/composer.json) so there is probably another dependency which conflicts.


Design sub payment declined

If the user is in a dunning cycle, we need to explain to the user they are and provide them with the ability to fix it.
Part of #1600

@rrhyne for a little more context, here's the current UX for this situation which we need to improve:
Email Notification
Users will be notified of this situation via a "payment failure" email, such as:

Subscription Management page
This is what the user will see if their subscription's status is "past due". (Which is to say nothing. We should instead have some big, yellow bar that says "yo dawg, your subscription is past due. Please update your payment method for uninterrupted service!")

The only hint that their subscription is in a bad state, is that some of the invoices at the bottom of the page will have the status of "open".

JFYI, if the user opens one of those Invoices in the "open" status, they will be taken to a Stripe-hosted page. And there they will be able to pay the invoice directly. (Which is pretty slick.)

What this means
Each Cody Pro subscription has a "status" field, which will have one of four values:

"trialing", meaning the Cody Pro subscription is on a free trial. This should be made apparent somehow. e.g. a "trialing" chip or something.
"active", meaning the subscription is in a good standing. This is the normal case.
"canceled", meaning the user no longer has a Cody Pro subscription. And instead they are looking at their old invoice history, or be presented with the ability to reactivate/resubscribe.
"past_due", which means the user owes us money.

A subscription will get into the past due state whenever they have an unpaid invoice. This will pretty much always arise from a subscription that was renewed for a new month of service, but there was a problem charging their credit card. (They didn't have enough money, or the card was rejected, or any number of other issues.)
When a subscription is in the past due state, the following will happen:

New will automatically retry the failed payment several times, over the next few days. Stripe is intentionally vague about this, since they have their own logic here. But it's something like "no more than 3x attempts, spread out over a 3-day period".
If the subscription is not paid up after those N-days, the subscription will automatically transition to the canceled state. The customer will churn, and lose access to Cody Pro.

So we want to avoid this situation where possible.
To fix this, a customer usually just needs to update their payment method on file. (e.g. add a new credit card.) Then, the next time we try to collect payment again (on the next automatic retry, sometime in the future), it will succeed. And the subscription will go back into the "active" state.
Or, the customer can now drill into the invoice, and pay it directly using Stripe's API. If successful, the subscription will transition back to an active state.
Design Recommendation
So what I think the minimum bar is in this state, is to do something like the following:

Make it clear from the UI that the Subscription is in a bad state. (e.g. a big, red banner or something.)
Indicate that there was a problem with their last payment, and they should update their payment method.
(Optionally) We can direct them to an unpaid invoice, and have them pay that... however, that isn't ideal, because we want them to enter their new credit card within our UI. If they pay the invoice on the Stripe-hosted page, any payment method they use (e.g. Apple Pay or something else) won't be used when the subscription's bill comes due next month...
(Optionally) After a user enters their payment method in this situation, we could automatically retry collecting payment for open invoices manually. (e.g. so after updating their credit card there is a ~1-2 second pause, and then the subscription would suddenly become "active".)

@rrhyne has progress and he'll update this ticket with it

Rob updated the description above, it's done on his part. Next step is to implement it in https://github.com/sourcegraph/cody/issues/1600


Autopopulate new requesters with some starter funds

We had chatted about using some of the Sloan money to autopopulate new requester accounts with $5 or something like that so they could test out the platform. I think the question is, is it possible to avoid sybil attacks where someone creates a bunch of different accounts? Would Stripe catch that? Or can we otherwise allow one account per credit card, or something like that?

regardless of profit/nonprofit status right? @mbernst

reopen if we should only do for non profit accounts, current implementation is for all


License outdated in package.json

I've seen that you changed the license of the project from GPL to MIT here #2
This change was not reflected in the license field inside the package.json here:
https://github.com/jackstenglein/mui-mentions/blob/43047c70edfb9a997de447a669548ea09454c81b/package.json#L32
This shows the wrong information in npm.js page https://www.npmjs.com/package/@jackstenglein/mui-mentions which could, potentially, deter people from using this awesome library :disappointed:

Thanks for the PR!


ActivityNet 1.2 feature

Hi, will you release the feature of ActivityNet 1.2?

@sujoyp @zhenyingfang Hi! Recently, I re-implemented the code of W-TALC on ActivityNet v1.2. I obtain the classification mAP of 94% on ActivityNet v1.2. But the detection performance is bad. Why is that? Is it parameter setting?

We smoothened the output of our model before applying the threshold for detection in ActivityNet1.2.

@sujoyp Thanks for your reply. I appreciate your help very much. I downloaded the features of ActivityNet v1.2. I used the following Settings to get<EMAIL_ADDRESS>def smooth(v):    l = min(351, len(v)); l = l - (1-l%2)    if len(v) <= 3:       return v    return savgol_filter(v, l, 1)  threshold = np.max(tmp) - (np.max(tmp) - np.min(tmp))*0.5
But But when I change the threshold to threshold = np.max(tmp) - (np.max(tmp) - np.min(tmp))*0.7, I got<EMAIL_ADDRESS>= 33.99. I think it's because the action instances in the ActivityNet v1.2 dataset occupy most of the video and each video contains only 1.5 action instances. So turning the threshold down can get better results. Is there any skill in parameter setting to get the results in the paper?

@Rheelt we actually used the savgol_filter, which is already there in the smooth() function of detectionMAP.py

hi, when I train on ActivityNet v1.2. the  I got mIOU is nan.
how to solve the problem?

hi, when I train on ActivityNet v1.2. the I got mIOU is nan.
how to solve the problem?

@Rheelt we actually used the savgol_filter, which is already there in the smooth() function of detectionMAP.py

hi, when I train on ActivityNet v1.2. the I got mIOU is nan.
how to solve the problem?

@sunsiyang2015 First, check whether detection weight is right. Then, check evaluation code

@sunsiyang2015 First, check whether detection weight is right. Then, check evaluation code

I use the reference evaluation code as same as detectionMAP.py

@sunsiyang2015 First, check whether detection weight is right. Then, check evaluation code

@sujoyp Thanks for your reply. I appreciate your help very much. I downloaded the features of ActivityNet v1.2. I used the following Settings to get<EMAIL_ADDRESS>def smooth(v): l = min(351, len(v)); l = l - (1-l%2) if len(v) <= 3: return v return savgol_filter(v, l, 1) threshold = np.max(tmp) - (np.max(tmp) - np.min(tmp))*0.5
But But when I change the threshold to threshold = np.max(tmp) - (np.max(tmp) - np.min(tmp))*0.7, I got<EMAIL_ADDRESS>= 33.99. I think it's because the action instances in the ActivityNet v1.2 dataset occupy most of the video and each video contains only 1.5 action instances. So turning the threshold down can get better results. Is there any skill in parameter setting to get the results in the paper?

@sujoyp Thanks for your reply. I appreciate your help very much. I downloaded the features of ActivityNet v1.2. I used the following Settings to get<EMAIL_ADDRESS>def smooth(v): l = min(351, len(v)); l = l - (1-l%2) if len(v) <= 3: return v return savgol_filter(v, l, 1) threshold = np.max(tmp) - (np.max(tmp) - np.min(tmp))*0.5
But But when I change the threshold to threshold = np.max(tmp) - (np.max(tmp) - np.min(tmp))*0.7, I got<EMAIL_ADDRESS>= 33.99. I think it's because the action instances in the ActivityNet v1.2 dataset occupy most of the video and each video contains only 1.5 action instances. So turning the threshold down can get better results. Is there any skill in parameter setting to get the results in the paper?

I use the reference evaluation code as same as detectionMAP.py, but the result is nan.

@sujoyp Hi ! Thanks for your excellent work. Can you share the parameter (window length) of savgol_filter?


2 Factor authentication support on OAuth Flow?

Describe The Bug:
Hi there, thanks for this updated fork. I've been looking through the oauth flow, but since it currently just auto-populates the username and password and submits the form, it doesn't seem like it would support two factor authentication flows. Since I believe the oauth form submission only needs to be done once (and afterwards it uses a refresh token), perhaps that link could just be opened in the browser so the user could fill in the form manually.
To Reproduce:
Account with 2 factor authentication
Expected behavior:
<>
Logs:
<>

Config:
<>

Node Version:
0
NPM Version:
0
Homebridge Version:
0
Operating System:
Other
Code of Conduct

[X] I agree to follow this project's Code of Conduct

They don't require two factor authentication and due to the fact that if you sign in on a device with the same amount it will change the refresh token I figured you would just go into settings and create a custom profile without two factor authentication and dedicate that to homebridge

PS
I have not gotten it to work yet, it gets stuck logging in


Is the endpoints parameter supposed to replace the /slack/events url?

Description
Describe your issue here.
When using the endpoints parameter like this:
endpoints: {
events: '/test/slack/events',
commands: '/test/slack/events'
}
I get the Your URL didn't respond with the value of the challenge parameter. error on the Enable Events page of the app.
Using the default URL (http://666c91c2013f.ngrok.io/slack/events) successfully passes. Is this the intended behavior, and if so how are the new endpoints intended to be used?
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:
node version:
OS version(s):
Steps to reproduce:

Expected result:
What you expected to happen
Actual result:
What actually happened
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.

@michaelwoon the endpoints parameter is supposed to replace slack/events.
I assume you are using the built in ExpressReceiver?
So your new URL you would put in for events request url is http://666c91c2013f.ngrok.io/test/slack/events
I just tested it with the following and it worked fine:
endpoints: { events: '/test/slack/events', commands: '/test/slack/events' },

I've added my own receiver to handle the health check response for the machine I'm running it on. Would that affect the Bolt app route?

@michaelwoon yup that is the reason it isn't working for you!
Bolt passes the endpoints object down to ExpressReceiver when it initializes it. When you create your own, you need to directly pass endpoints to it.
const receiver = new ExpressReceiver({
    signingSecret: '...',
    endpoints: {...}
})

That worked, thanks!


Nested Error Page Behavior Inconsistent with SvelteKit Docs

Describe the bug
I'm using SvelteKit v1.0.0-next.354
The SvelteKit documentation here states:

For example, if src/routes/settings/notifications/index.svelte failed to load, SvelteKit would render src/routes/settings/notifications/__error.svelte in the same layout, if it existed. If not, it would render src/routes/settings/__error.svelte in the parent layout, or src/routes/__error.svelte in the root layout.

It seems that it will always use the top-level __error.svelte page for a folder with a fixed value. It seems to work correctly if your folder name is a parameter like [id].
See the reproduction for an example.
Reproduction

Create a new SvelteKit skeleton project.
Inside the routes folder, create __error.svelte in /routes
Inside /routes create index.svelte.
Inside the routes folder, create a test folder.
Inside /routes/test create index.svelte.
Inside /routes/test create __error.svelte.

Then visit the following URLs and observe the following results:
✅ Correct: http://localhost:3000/ ➡ /routes/index.svelte content
✅ Correct: http://localhost:3000/asdf ➡ /routes/__error.svelte content
✅ Correct: http://localhost:3000/test ➡ /routes/test/index.svelte content
⛔Incorrect: http://localhost:3000/test/asdf ➡ /routes/__error.svelte content, but should be /routes/test/__error.svelte content
Reproduction Project:
https://github.com/cliftonlabrum/SvelteKitErrorPageTest
Logs
No response
System Info
System:
    OS: macOS 12.4
    CPU: (10) arm64 Apple M1 Max
    Memory: 3.08 GB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
Binaries:
    Node: 16.15.1 - ~/.nvm/versions/node/v16.15.1/bin/node
    npm: 8.11.0 - ~/.nvm/versions/node/v16.15.1/bin/npm
Browsers:
    Chrome: 103.0.5060.53
    Safari: 15.5
npmPackages:
    @sveltejs/adapter-auto: next => 1.0.0-next.52
    @sveltejs/kit: next => 1.0.0-next.354
    svelte: ^3.44.0 => 3.48.0

Severity
serious, but I can work around it
Additional Information
No response

I'd say it is working as documented. Please have a look into the docs in the Error pages - 404s section.

Nested error pages are only rendered when an error occurs while rendering a specific page. In the case of a request that doesn't match any existing route, SvelteKit will render a generic 404 instead. or example, given these routes...

src/routes/
├ __error.svelte
├ marx-brothers/
│ ├ __error.svelte
│ ├ chico.svelte
│ ├ harpo.svelte
│ └ groucho.svelte

...the marx-brothers/__error.svelte file will not be rendered if you visit /marx-brothers/karl. If you want to render the nested error page, you should create a route that matches any /marx-brothers/* request, and return a 404 from it

This would mean in your example that you need to create a route that matches any /test/* request, and return a 404 from it. For example src/routes/test/[...path].svelte


Javascript syntax highlighting fails on certain code

Issue Type
Bug
Description
I have the following code:
if (level.length > 0) image(level[0].image, windowWidth / w[0] * w[1], windowHeight / h[0] * h[1], windowWidth / (w[0] / 2), windowHeight / (h[0] / 2));

if (level.length > 1) image(level[1].image, windowWidth / w[0] * w[2], windowHeight / h[0] * h[2], windowWidth / (w[0] / 2), windowHeight / (h[0] / 2));

The syntax highlighting gets confused and starts interpreting things wrong.
 The grammar interprets / 2), windowHeight as the beginning of a regex.

Opened https://github.com/Microsoft/TypeScript-TmLanguage/issues/580 to track this upstream


[Feature][PagerDuty] Support PagerDuty as an incident management system

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
PagerDuty is one of the most popular issue management tools in the industry. DevLake would help more teams implement the DORA framework if it has a plugin that can pull incident data from PagerDuty.

Incident
The most important entity from PagerDuty is incident. A PagerDuty incident can be triggered automatically via integration with monitoring service and API, or manually via web app and mobile app. See below for an incomprehensive list of incident attributes we're interested in:

Status: can be one of Triggered, Acknowledged, Resolved
Impacted Service
Assignee
Title
Urgency
Priority: for the difference between urgency and priority, see here: https://community.pagerduty.com/forum/t/whats-the-difference-between-urgency-severity-and-priority/153
Duration
Description
When an incident is triggered, when it's acknowledged, and when it's resolved

See PagerDuty's doc on incidents for details: https://support.pagerduty.com/docs/incidents
See below for some screenshots of creating a new incident on web app:

DORA Support
IIRC, DevLake's DORA plugin uses issues of incident type to calculate DORA metrics, so let's see if we can map PagerDuty 's incident to the issue entity in DevLake's domain layer.
Alert
Alert is another important entity in PagerDuty's data. It's not strictly required for calculating DORA, but would be a nice addition to our database.
Use case
A PagerDuty plugin is most useful for DevLake's support for DORA metrics.
Related issues
No response
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'll take this one.

@hezyin @klesh @keon94 Will PagerDuty's incidents be transformed into an issue in type "INCIDENT" in the domain layer table.issues?

@Startrekzky I think that's the current plan. What do you think?

@hezyin @Startrekzky Going by this doc, are the required fields in that table the minimum we'll need to create a domain Issue object from PagerDuty's data?

@hezyin @Startrekzky Going by this doc, are the required fields in that table the minimum we'll need to create a domain Issue object from PagerDuty's data?

Yes, but we want to collect as much information as possible. Below is the mapping logic between the schema of DevLake issues and PagerDuty incidents in Singer.

DevLake issues
PagerDuty incidents

board_key
service_id, make sure a board is created in table.boards. A board is a collection of issues, if there's no project or board entity in PagerDuty, then service might be a good choice to be abstracted to a DevLake board here.

url
html_url

issue_key
incident_number

title
title

description
summary

type
a constant 'INCIDENT'

status
PagerDuty incident URL

original_status
status. Must be one of TODO DONE IN_PROGRESS

created_date
created_at

resolution_date
I didn't find a field called duration in Singer's schema. Maybe we can transform it from field last_status_change_at of an incident whose status is DONE

priority
priority.properties.id or another key in priority.properties

lead_time_minutes
an incident's resolution_date - created_ at, convert to minutes

assignee_id
assignments.items.assignee.id

assignee_name
I didn't see an assignment name here, but please convert it if it exists

Please note that this mapping logic is based on the names of PagerDuty's incident schema. You can modify it if the real data doesn't look like this.
Also, please note that entity boards and accounts also need to be implemented if service name and incident assignee are wanted here.

There's a bug in the incidents tap stream which prevents incremental data collection. I've filed an issue to their repo here. For now, this plugin will be implemented using the non-incremental collection scheme. cc @hezyin

@keon94 Thanks for the update. Please proceed with the non-incremental version for now.

@hezyin @Startrekzky
Here's an example of the issues tables after mapping the Pagerduty fields

@hezyin @Startrekzky @klesh Pagerduty allows multiple assignees for a given issue (incident). How do you guys suggest we approach this? Our domain model only supports having a single one.

Domain issues table + Grafana:

PR: #3641

@keon94 @hezyin Do you think we should reopen this or create a new issue for PagerDuty?


Old Sidebar is shown in the page until the page is updated manually - feedback for the team

While building a nextra doc, I noticed that the sidebar of a specific page only gets updated when I update any contents on the page. So the homepage will keep showing the older sidebar until a content - even a single letter is updated on the home page. How do we keep the sidebar updated with the newest _meta.json pages without updating existing pages every single time?

@agratapatel - Are you talking about local? or is your app deployed somewhere?
This seems to be a caching issue.

I'm experiencing this as well. The footer <- Previous Page and Next Page -> lead to 404, and the sidebar points to the old url as well leading to a 404.
I can navigate to the page directly by URL, but can sort out why that's being cached.

@abhaytalreja it's deployed here: https://land-a-design-job-book.vercel.app/
I have fixed it for now through a hack by updating the page every time - but the issue still persists.

@abhaytalreja it's deployed here: https://land-a-design-job-book.vercel.app/
I have fixed it for now through a hack by updating the page every time - but the issue still persists.

@abhaytalreja is the code OS? Would love to see how you got around this.

Not working for me. I had to rename the title of the dropdown on the left menu and there is NO any page associated with this item. Tried to update the pages of upper and lower levels, no result. I think it's very confusing and can be considered as a bug. At least, the devs could give a clue which cache should be cleaned to make it work.

Did you find a fix for this? i see the old sidebar too from time to time

@bryandandan https://github.com/shuding/nextra/issues/1564#issuecomment-1447419595

Did you find a fix for this? i see the old sidebar too from time to time

Eventually, somebody gave me a piece of advice that worked: when I need the sidebar to be updated, I do the manual redeploy on Vercel. When doing so, it asks if you want to use the cache and I say no:

Same for me this fixed it for me!

I think this is a dupe of https://github.com/shuding/nextra/issues/1342 ?

This is the same issue we're experiencing in our projects. It is already reported. Tagging to follow up.
@ericvalcik @jakubschenk

I encountered the same problem and was very distressed.
I was able to solve it by manually redeploying with "Use existing Build Cache" unchecked, as commented here.
Thank you very much.

closing as duplicate https://github.com/shuding/nextra/issues/1564#issuecomment-1447419595


How can I re-create indexes and auth with node-mongo-seeds?

I want to recreate a seed MongoDB database, but I also need to add indexes and auth.
Any ideas?
Thx

node-mongo-seeds currently doesn't support creating indexes. Pull requests are welcome if you want to implement that.
As far as auth are you referring to create users for mongodb? If so, that is also not implemented at this time. Again pull requests are welcome for this too.


Filter by score

Related product team resources: PRD (internal only)
Motivation

Required by users
Usage

Filter by score
https://meilisearch.notion.site/Filter-by-score-usage-224a183ce7b24ca99b6a9a8da755668a?pvs=74
TODO

Reminders when modifying the Setting API

[ ] Ensure the new setting route is at least tested by the test_setting_routes macro
[ ] Ensure Analytics are fully implemented

[ ] /settings/my-new-setting configurated in the make_setting_routes macro
[ ] global /settings route configurated in the update_all function

[ ] Ensure the dump serializing is consistent with the /settings route serializing, e.g., enums case can be different (camelCase in route and PascalCase in the dump)

Special cases when adding a setting for an experimental feature

[ ] ⚠ API stability: The setting does not appear on the main settings route when the feature has never been enabled (e.g. mark it Unset when returned from the index in this situation. See an example)
[ ] The setting cannot be set when the feature is disabled, either by the main settings route or the subroute (see validate_settings function)
[ ] If possible, the setting is reset when the feature is disabled (hard if it requires reindexing)

Impacted teams

@meilisearch/integration-team @meilisearch/docs-team

Hello :wave:
A prototype is available for filtering by ranking score!
Getting the prototype
You need to start from a fresh new database (remove the previously used data.ms) and use the following Docker image:
docker run -it --rm -p 7700:7700 -v $(pwd)/meili_data:/meili_data getmeili/meilisearch:prototype-score-threshold-0

Using the prototype
The prototype adds a new optional parameter to search requests: rankingScoreThreshold.
The rankingScoreThreshold if present must be a number in the [0.0, 1.0] range.
During the search, any set of results whose _rankingScore is below the rankingScoreThreshold is discarded instead of returned. The corresponding documents are also removed from the facet distribution and don’t count towards the totalHits and estimatedTotalHits.

[!WARNING]
For performance reasons, the current implementation does not always return correct values for totalHits and estimatedTotalHits

Explanation
When the `limit` number of results is reached, then the algorithm stops without computing the `_rankingScore` for the remaining, unreturned documents. As a result, Meilisearch cannot determine if the remaining documents meet the threshold or not. The current behavior is to keep the remaining documents in the set of possible candidates.
This means that increasing `limit` or requesting the next page can result in a decrease in `totalHits` and `estimatedTotalHits` (as well as the number of pages).
Fixing this limitation involves computing the results exhaustively, which is going to be very performance-intensive and difficult to achieve at all for vector sort.

We're looking for feedback on this prototype, especially on the limitations stated above.

[!CAUTION]
We do not recommend using this prototype in production. This is only for test purposes.

Closed by #4666, will be in rc1


numpy 1.12.0 rejects floats as reshape arguments

This section of code
https://github.com/SebastianoF/bruker2nifti/blob/master/bruker2nifti/_getters.py#L161-L166
Dies on numpy 1.12.0 with the following error:
/home/cic/desgab/Desktop/bruker2nifti_qa-master/raw/McGill_Orientation/a20130329_APM_DEV_Orient.j71
started:

Converting experiment 1:

pdata/
   1/
       d3proc
       id
       meta
       roi
       2dseq
       visu_pars
       procs
       reco
Traceback (most recent call last):
 File "test_b2n.py", line 9, in <module>
   bru.convert()
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/converter.py", line 185, in convert
   nifti_file_name=scan_name)
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/converter.py", line 137, in convert_scan
   get_reco=self.get_reco,
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/_cores.py", line 150, in scan2struct
   consider_subject_position=consider_subject_position
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/_getters.py", line 166, in nifti_getter
   vol_data = img_data_vol.reshape(vol_pre_shape, order='F')
TypeError: 'numpy.float64' object cannot be interpreted as an integer

Notes here: https://github.com/numpy/numpy/releases/tag/v1.12.0

Thanks! Maybe solved on the dev branch.
Can you please check if it works on your side, as I could not reproduce the error with my current dataset.

Still bugged, now with a reshape problem
/home/cic/desgab/Desktop/bruker2nifti_qa-master/raw/McGill_Orientation/a20130329_APM_DEV_Orient.j71
started:

Converting experiment 1:

pdata/
   1/
       d3proc
       id
       meta
       roi
       2dseq
       visu_pars
       procs
       reco
Traceback (most recent call last):
 File "test_b2n.py", line 9, in <module>
   bru.convert()
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/converter.py", line 185, in convert
   nifti_file_name=scan_name)
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/converter.py", line 137, in convert_scan
   get_reco=self.get_reco,
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/_cores.py", line 150, in scan2struct
   consider_subject_position=consider_subject_position
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/_getters.py", line 167, in nifti_getter
   vol_data = img_data_vol.reshape(vol_pre_shape, order='F')
ValueError: cannot reshape array of size 66 into shape (256,256,15,0)

Uhm... It seems that the information in the Bruker parameters files does not match the dimension of the array. Try to copy your data in a new place, erase folder 1 and see if the other subjects are converted correctly. So I will know how much do I have to worry :-) ! Let me know.

BTW, this is the test data from the repo....
Study conversion
/home/cic/desgab/Desktop/bruker2nifti_qa-master/raw/McGill_Orientation/a20130329_APM_DEV_Orient.j71
started:

Converting experiment 2:

pdata/
   1/
       d3proc
       meta
       2dseq
       procs
       visu_pars
       roi
       id
       reco
Traceback (most recent call last):
 File "test_b2n.py", line 9, in <module>
   bru.convert()
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/converter.py", line 185, in convert
   nifti_file_name=scan_name)
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/converter.py", line 137, in convert_scan
   get_reco=self.get_reco,
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/_cores.py", line 150, in scan2struct
   consider_subject_position=consider_subject_position
 File "/home/cic/desgab/Desktop/bruker2nifti/bruker2nifti/_getters.py", line 167, in nifti_getter
   vol_data = img_data_vol.reshape(vol_pre_shape, order='F')
ValueError: cannot reshape array of size 65 into shape (64,64,32,0)

Looks odd. I will be looking into it in the week end.

I am unable to reproduce my user's errors in a clean environment, so I'm considering the original bug fixed and closed. Thanks.

Followup: error due to user not having git-lfs when getting a copy of the QA repo.


Add 2D font support

There are two ways of doing this.

Use PS2SDK font library, but this will require for us impress.ini file which is not present in PS2SDK.

Better option - do it similiar like in gsKit, but this require more effort

I was studing the font sample from PS2SDK but coudn't run without that "impress.ini". Any idea what is this file?

Once, I also made an attempt to search for this file. In my opinion this file was somehow lost while porting the PS2SDK from Subversion to Git a long time ago. Unfortunately I think that the best option is to do it like in gsKit.

Still an issue in Tyra 2.0.0.
Im wondering about implementing of bmfont file support
https://www.angelcode.com/products/bmfont/


Missing closing ' on the line 7.

I had the exact same issue. Adding the ' at the end of line 7 fixed it.


feat!: follow conventional commits and setup automated releases

bors r+

bors cancel

bors try

bors r+


Bump bluesky to 1.5.3.

Do you mind to reset the build number to 0?

I think eventually, it will be 1.6.0, I will close this PR. @danielballan @tacaswell


Error occurred when executing comfy-kandinsky22-hint-combiner

I am trying the demo workflow - workflow-depth.json
Nothing changes.
I get an error:

Error occurred when executing comfy-kandinsky22-hint-combiner:

expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [, ]

Other workflows are working good

Hey @Aljnk, thanks for the report. Can you pull the repo again and try it again now? I added a fix in aac63d.

Hi again.
Error does not appear but
I'm not sure, but it's not working properly -

result must be close to depth, but not

Hm, could you show whole pipeline?

your demo + my photos
do not change anything

maybe change some seeds :)

I see. If you didn't rename decoder checkpoint, you are using wrong one. It doesn't support depth hint.
Make sure to use Control Depth decoder: https://huggingface.co/kandinsky-community/kandinsky-2-2-controlnet-depth

Yes, I renamed -
I installed your node today:

https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder
https://huggingface.co/kandinsky-community/kandinsky-2-2-prior

You need

https://huggingface.co/kandinsky-community/kandinsky-2-2-controlnet-depth

It's another third checkpoint.

I see :) Thanks a lot!


App start: nav menu flickers on back action from settings >> about

Happens on the first try after cold start

Already fixed


Users can precisely control FPS

When I set app.ticker.maxFPS = 50:

Fixed:

before: https://www.pixiplayground.com/#/edit/hbR16awXmdxpRaCQvx71U
after: https://www.pixiplayground.com/#/edit/z06c_5wDi0co39V~kITu4
You may need to tap save or refresh to display the number of frames correctly.

[x] Lint process passed (npm run lint)
[x] Tests passed (npm run test)

Codecov Report

Merging #5934 into dev will decrease coverage by 0.01%.
The diff coverage is 25%.

@@            Coverage Diff             @@
##              dev    #5934      +/-   ##
==========================================
- Coverage   70.39%   70.37%   -0.02%
==========================================
  Files         208      208
  Lines       10494    10496       +2
==========================================
  Hits         7387     7387
- Misses       3107     3109       +2

Impacted Files
Coverage Δ

packages/ticker/src/Ticker.js
86.61% <25%> (-1.39%)
:arrow_down:

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 05c5e0e...f717684. Read the comment docs.

@themoonrat thanks for reviewing. Do you have some code that produce those results that we can re-use to test future changes on this PR?

@themoonrat Thank you for your detailed test results. I made some changes to make sure that most of the time FPS is below maxFPS.

@themoonrat how does this look to you?

The comments above
if (this._minElapsedMS)
Are still out of date and refer to my old implementation

I can still easily exceed the maxfps: setting it as 45 on a 60fps monitor and the fps reports at 49 :/

@themoonrat I think at this point you are nitpicking =)

Perhaps it's the interference of other things, and the performance on my machine (60FPS) is very close to the target value.
Occasionally there are more than maxFPS cases, basically stable in ± 2~3 FPS.
maxFPS: 40

maxFPS: 45

maxFPS: 50

Thanks @JetLua for another awesome PR :tada:


Global search keyword logging

It would be useful to record keywords of global searches.

now it works on beta. Searched terms will be logged in google analytics and is visible on https://www.google.com/analytics/web/?hl=en#report/content-site-search-overview/a11736060w102549468p106597234/


Update Mater

Updates project structure and some refactorings
 Mention [stepsize] in a comment if you'd like to report some technical debt. See examples here.

Approved


Align numpy memory view when exporting weights from TF to TC

TL;DR, ascontiguousarray is preferrable over copy.

~This is [WIP] because I want to leave my debug trace for people who want to repro and have a deep understanding of the issue is.~
The root cause for inconsistency of weights exported from TF to TC is:
net_params.update({var.name.replace(":0", ""): _np.transpose(val, (3, 2, 0, 1))})

The numpy ufunc transpose doesn't change the memory layout of numpy array. When we load the python object to TC CPP backend, we use this logic here
      pybind11::buffer_info buf = kv.second.request();
      turi::neural_net::shared_float_array value =
          turi::neural_net::shared_float_array::copy(
              static_cast<float*>(buf.ptr),
              std::vector<size_t>(buf.shape.begin(), buf.shape.end()));

The shape is correct but the buf.ptr points to the actually memory storage of numpy array, which has the layout of the original layout before being transposed.
It's similar to the lazy evaluation of our SFrame. You can apply different operations on the SFrame but the underlying storage layout won't change unless you call to materialize.
The solution is to call copy() to enfore numpy to materialize the new memory view of applying lazy-evaluated ufuncs.
net_params.update({var.name.replace(":0", ""): _np.transpose(val, (3, 2, 0, 1)).copy()})

This is a critical bug and it's worthy of our attention.
If you want. to repro, check out hash 51b7b2dcb42. Without solidating to new memory layout (original layout with C order, transposed, TC interpretation of memory layout of numpy), the output is
[[0. 1. 2. 3. 4.]
 [5. 6. 7. 8. 9.]]
[[0. 5.]
 [1. 6.]
 [2. 7.]
 [3. 8.]
 [4. 9.]]
dummy
(5, 2, )
0
1
2
3
4
5
6
7
8
9

After solidating by calling copy,
dummy
(5, 2, )
0
5
1
6
2
7
3
8
4
9

fixes #2692


NotImplementedError: can't find current frequency file

Describe the bug
After installing pytest-monitor to plug it inside https://github.com/PyFPDF/fpdf2 a stacktrace was raised when calling pytest
To Reproduce
Steps to reproduce the behavior:

Clone https://github.com/PyFPDF/fpdf2
Run pip install --upgrade . pytest-monitor -r test/requirements.txt in the cloned repo directory
Run pytest

Expected behavior
No error
Stacktrace
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/_pytest/main.py", line 266, in wrap_session
INTERNALERROR>     config.hook.pytest_sessionstart(session=session)
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pluggy/_hooks.py", line 265, in __call__
INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pluggy/_manager.py", line 80, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pluggy/_callers.py", line 60, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pluggy/_result.py", line 60, in get_result
INTERNALERROR>     raise ex[1].with_traceback(ex[2])
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pluggy/_callers.py", line 34, in _multicall
INTERNALERROR>     next(gen)  # first yield
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pytest_monitor/pytest_monitor.py", line 194, in pytest_sessionstart
INTERNALERROR>     session.pytest_monitor.compute_info(session.config.option.mtr_description,
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pytest_monitor/session.py", line 85, in compute_info
INTERNALERROR>     self.set_environment_info(ExecutionContext())
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/pytest_monitor/sys_utils.py", line 72, in __init__
INTERNALERROR>     self.__cpu_freq_base = psutil.cpu_freq().current
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/psutil/__init__.py", line 1857, in cpu_freq
INTERNALERROR>     ret = _psplatform.cpu_freq()
INTERNALERROR>   File "/home/user/.local/share/virtualenvs/fpdf2/lib/python3.8/site-packages/psutil/_pslinux.py", line 701, in cpu_freq
INTERNALERROR>     raise NotImplementedError(
INTERNALERROR> NotImplementedError: can't find current frequency file

Desktop (please complete the following information):

OS: Linux (Ubuntu 20.04.4 LTS through WSL)
Python version: 3.8
Pytest version: 7.1.2
pytest-monitor version: 1.6.4

Hi @Lucas-C
Apologies for the delay and thanks for reporting!
It seems psutil is confused with your system. I think it will look for /proc/cpuinfo but such files do not seems to exists.
I suggest to report that point to psutil directly.

This is indeed an issue with psutil & WSL: https://github.com/giampaolo/psutil/issues/1251
While upport for this is added, could you consider having a fallback?
Like other libs did: https://github.com/google/deepvariant/issues/191#issuecomment-504492772

You are absolutely right. I think that 2 issues is enough for implementing it especially with the psutil team having difficulties in solving these issues.
I'll do my best to do it quickly.
I am thinking about a two times fallback similar to:
try:
   freq = psutil.cpu_freq()
   return freq.current if freq is not None else 0.0
except NotImplementedError:
    return float(os.environ.get('PYTEST_MONITOR_CPU_FREQ', '0')

I think that would put your exception away and match your use case.

That look great!
Thank you for taking a look at this @js-dieu 😊


[Software Addition] PolyMC (MultiMC fork)

Checklist

[X] I've checked that my software suggestion hasn't already been added to one of the lists.
[X] I've checked the latest issues to make sure that this software hasn't already been suggested.

What is your software's name?
PolyMC
What systems do you know your software works on?

[X] Windows 11
[X] Windows 10
[ ] Windows 8/8.1
[ ] Windows 7
[ ] Windows XP or earlier
[ ] MacOS
[X] Linux
[X] Other

Input a link to your suggested software.
https://polymc.org/
What is your reasoning for including this software?
PolyMC is a MultiMC with a few interesting features like a built-in mod downloader. It is available in many linux package formats like flatpak or appimage, contrary to the multimc.
(OPTIONAL) Give some extra information about the software.
No response

Behind the scenes of why they forked