Record seccomp profiles

The idea is to allow the recording of seccomp profiles directly inside the Kubernetes cluster. To achieve that we could utilize the oci-seccomp-bpf-hook, which has the following requirements:

Kernel headers have to be installed (could be handled by the operator or the sysadmin)
An OCI hook compatible container runtime

We could think about annotating a node, then install the kernel headers (may be a prerequisite) and the hook. After that, the operator would have to annotate the target workload correctly (that's the way how the hook knows what to do). The recorded profile would have to be written into a configmap afterwards, which would cause that all nodes sync the profile to disk.
WDYT? It's overall a bit complicated but seems like a valuable feature after the initial release.

Edit: We could also use the seccomp notifier feature to think about a more elegant way to record profiles. This needs more evaluation but might be achievable by creating a PID namespace-shared sidecar.

/priority important-longterm

This method is ideal for long running containers which would be "monitored" as its functionality is being used, as it only captures the syscalls made during the execution of the container being observed. The more permutations of execution paths ran, the more accurate will be the resulting profile.
A challenge on using seccomp-bpf-hook on a cluster is that it will need to run as root and with CAP_SYS_ADMIN capability, which effectively allows that container to bypass a considerable amount of security isolation primitives in the nodes. This can put end-users at risk if they were to decide using such feature in production or mixed usage clusters/nodes.
Ideally such approach would be used on ephemeral non-production clusters with the assistance of E2E tests which would be executed against the container being observed.

cc @rhafer @ereslibre

I did a bit of reasearch, i just want to cross-reference them:

cri-containerd doesn't support oci-hooks yet, this is IMO a major blocker for this (https://github.com/containerd/cri/issues/405)
ftrace could be a different option (depends on oci-hooks, but doesn't require kernel headers): https://github.com/KentaTada/oci-ftrace-syscall-analyzer
we could talk to containerd directly to get a PID and inject the eBPF tracer after the container starts (far from ideal, but currently possible)

Interesting approaches @moolen and thank you for the insights. :pray: From my perspective the most clean way would be to let containerd suppport OCI hooks, where I see no major blockers for it. :shrug:

A challenge on using seccomp-bpf-hook on a cluster is that it will need to run as root and with CAP_SYS_ADMIN capability, which effectively allows that container to bypass a considerable amount of security isolation primitives in the nodes. This can put end-users at risk if they were to decide using such feature in production or mixed usage clusters/nodes.

@pjbgf  Isn't it only the hook itself that needs CAP_SYS_ADMIN (in order to setup the bpf tracer). IIUC this doesn't mean that the container itself needs the CAP_SYS_ADMIN   capability.

I did a bit of reasearch, i just want to cross-reference them:
* `cri-containerd` doesn't support oci-hooks yet, this is IMO a major blocker for this ([containerd/cri#405](https://github.com/containerd/cri/issues/405))

* ftrace could be a different option (depends on oci-hooks, but doesn't require kernel headers): https://github.com/KentaTada/oci-ftrace-syscall-analyzer

Yeah, that might be worth a look. Another option would be to utilize the seccomp notifcation mechanism (as already mentioned in initial post), but that does require some changes on lower level runtimes  (runc, crun, ...)

* we could talk to containerd directly to get a PID and inject the eBPF tracer after the container starts (far from ideal, but currently possible)

Hm, I guess at that point it might already have missed a couple of syscalls? So result would be imcomplete. I agree with @saschagrunert here, it would be cool if containerd would finally get support for oci-hooks.

@pjbgf Isn't it only the hook itself that needs CAP_SYS_ADMIN (in order to setup the bpf tracer). IIUC this doesn't mean that the container itself needs the CAP_SYS_ADMIN capability.

Very fair observation. Overall my concern is that requiring users to have something running with CAP_SYS_ADMIN capability within their clusters may lead a few potential route of privesc/security features bypass that cannot go unchecked. This is not a show stopper in itself, however we need to think what compensating controls we would put in place to limit potential damage.
Once we get to a working prototype we can brainstorm around it.

/assign
I'll take over the work from @rhafer :)

Let's close this for now, more enhancements to the feature to come.
/close


Size Changes Between Runs

Originally found in this Stack Overflow question: http://stackoverflow.com/questions/37671632/my-p5-js-canvas-window-continues-to-change-with-each-code-execution-how-can-i-s
I see the same issue on Windows 7.
If I have some simple code:
function setup() {
  createCanvas(600, 400);
}

function draw() {
  background(0);
  ellipse(mouseX, mouseY, 25, 25);
}

The code works okay the first time I run it. I close the window, don't make any changes to the code, and run it again. Now the width will be slightly smaller, and the height will be slightly larger. This adds up over runs, so by the 10th time I'm running it, my sketch is a different size than what I'm giving it.

I found this related issue: https://github.com/processing/p5.js-editor/issues/129
That issue appears to be fixed, but I'm still seeing the problem in the latest version (0.5.10).


Generate Gantt charts

[x] Initial Gantt chart
[ ] Final Gantt chart

Reopening to track the generation of the final Gantt chart.


Validate annotations against the workflow task definition

Anyone working on this should probably first issue a PR that only reports to Honeybadger, but still saves the classifications. Once that manages to stay quiet we can look into being stricter and flat out rejecting classifications if someone wrote a bad frontend.

Also this should save classifications but if they don't conform to the expected format, raise an error (report) then mark as invalid in the background processing worker. Any invalid classifications are ignored for other events, e.g. retirement, aggregation, exports, etc.
Look at modifying the lifecyled_at for the state tracking


Ensure that the postgres plugin finds the bin_dir by default

The shield postgres plugin expects the bin_dir to be located at
/var/vcap/packages/postgres/bin. The shield-boshrelease agent-pgtools
job will put the bin_dir to /var/vcap/packages/postgres9.4/bin.
The change in the init script will check if the default bin_dir
exists and if not, it will create a symlink to the one of the
shield-boshrelease agent-pgtools.

Thank you!


Global feature hover options

This draft adds a top level option mapHover to app.conf, to provide application wide defaults for feature hover customization. The following properties are supported (quoted from the doc):

Property
Meaning
Example

delay
Timespan in milliseconds, by which displaying the tooltip is deferred after the mouse pointer rests. Defaults to 150.
"delay": 150

hideOnMousemove
Hide the tooltip when the mouse cursor is moved. Defaults to false.
"hideOnMousemove": false

hoverOverlay
ID of a custom map overlay to use as a default display when a feature of the layer is hovered. Declaration of the hoverOverlay property on a mapLayer level takes precedence. For more information on how to implement a map overlay see the reusable components section. Defaults to Wegue's default tooltip wgu-hover-tooltip
"hoverOverlay": "my-custom-overlay"

Example:
"mapHover":
    {
      "delay": 150,
      "hideOnMousemove": false,
      "hoverOverlay": "my-custom-overlay"
    }

Additionally, some problems related to dangling tooltips have been fixed when the mouse cursor leaves the map canvas (efacbde3d8a6a2c04c5ae466232f235c4ac37ef7).

Hi guys. This is a first draft. Some topics to think about:
We now have 3 spots to configure feature hover tooltip behavior: 1. (Optional) App-wide defaults, 2. settings at mapLayer scope and 3. (optional) properties to configure the MapOverlay when doing a custom implementation. Is this OK or could it be generally confusing? To explain the 3 config levels and my motivation.

Apparently delay cannot be configured on a layer level, since the pointer rest timer must be known in advanced before issuing any WMS GetFeatureInfo requests.
I then added the hoverOverlay property for convenience, this can be declared app-wide or on a layer level.
In our testing, the hover overlays turned out to be pretty disturbing when hovering larger areas of connected features, e.g. a complete tile layer. Therefore I added hideOnMousemove which e.g. can be used with a somewhat larger delay to improve the situation. I only added this to the app-wide setting, but it could be introduced on a layer level as well.

Most of the new property names have been ad-hoc choices. Any suggestions for renamings are welcome. E.g. should it be something like mouseRestDuration instead of delay, or something like featureHover or just hover instead of mapHover?
Let me know what you think.

Hi @sronveaux,
thanks for the review and the valuable feedback. I will go through the points you listed above.
Regarding hideOnMousemove: This could be a property on the layer in addition to the global setting. So the global setting would be just a default as well. However this probably would require a different name on the layer level.
Anyway, since this isn`t urgent, we can wait until @chrismayer is back, so he can have a word about it too.


Update index.rst

Also, make a separate section for new note. You put it to  Protected properties, but the note is not always related to protected properties


Cross issue: Add support to karma-detect-browsers

I have a pull request for karma-detect-browsers that adds support for this plugin. You may find this useful if you're already using the plugin, or if you want to conditionally test Edge on Windows 10. If you're interested in testing it, you can install my fork with npm install --save-dev nickmccurdy/karma-detect-browsers#edge.
I'll close this issue if the original pull request is merged or closed.

Edge support is now merged into karma-detect-browsers, I recommend using it if you want to automatically run Karma launchers based on the availability of their browsers.


Transform.rotate changes location of Icon on IOS but works as expected on android

Steps to reproduce

create flutter application
paste in your main.dart file code sample below
run app on ios device or simulator

Expected results
Icon should rotate to 180 degrees upon pressing Text button and should not change it location
Actual results
Icon rotates to 180 degrees upon pressing Text button and changes location
Code sample
Code sample
import 'package:flutter/material.dart';
import 'dart:math' show pi;

void main() {
  runApp(const App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        brightness: Brightness.dark,
        useMaterial3: true,
      ),
      darkTheme: ThemeData(brightness: Brightness.dark),
      themeMode: ThemeMode.dark,
      debugShowCheckedModeBanner: false,
      debugShowMaterialGrid: false,
      home: const HomePage(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Home Page'),
      ),
      body: const Center(
        child: CollapseButton(),
      ),
    );
  }
}

class CollapseButton extends StatefulWidget {
  const CollapseButton({
    super.key,
  });

  @override
  State<CollapseButton> createState() => _CollapseButtonState();
}

class _CollapseButtonState extends State<CollapseButton>
    with SingleTickerProviderStateMixin {
  late final AnimationController _rotationController;
  late final Animation<double> _rotation;

  @override
  void initState() {
    _rotationController = AnimationController(
      vsync: this,
      duration: const Duration(milliseconds: 350),
    );
    _rotation = Tween<double>(begin: 0, end: pi).animate(
      CurvedAnimation(parent: _rotationController, curve: Curves.easeInOut),
    );
    super.initState();
  }

  @override
  void dispose() {
    _rotationController.dispose();
    super.dispose();
  }

  void _toggleCollapse() {
    if (_rotationController.isDismissed) {
      _rotationController.forward();
    } else {
      _rotationController.reverse();
    }
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        TextButton(
          onPressed: _toggleCollapse,
          child: const Text('press'),
        ),
        const SizedBox(height: 16),
        AnimatedBuilder(
          animation: _rotationController,
          builder: (context, child) {
            return Transform.rotate(
              angle: _rotation.value,
              child: child,
            );
          },
          child: const Icon(Icons.expand_more),
        ),
      ],
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
starting point

after pressing button

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output

[✓] Flutter (Channel stable, 3.24.0, on macOS 14.6.1 23G93 darwin-arm64, locale
    ru-TM)
    • Flutter version 3.24.0 on channel stable at
      /Users/serdar/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 80c2e84975 (3 недели назад), 2024-07-30 23:06:49 +0700
    • Engine revision b8800d88be
    • Dart version 3.5.0
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/serdar/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.91.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (6 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554                        •
      android-arm64  • Android 14 (API 34) (emulator)
    • iPhone 14 Pro (mobile)          • 23466793-AC27-4188-A90C-6216F2039F3D •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)                 • macos                                •
      darwin-arm64   • macOS 14.6.1 23G93 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                •
      darwin         • macOS 14.6.1 23G93 darwin-arm64
    • Chrome (web)                    • chrome                               •
      web-javascript • Google Chrome 127.0.6533.120
    ! Error: Browsing on the local area network for iPhone. Ensure the device is
      unlocked and attached with a cable or associated with the same local area
      network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code
      -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[✓] Flutter (Channel master, 3.24.0-1.0.pre.440, on macOS 15.1 24B5024e darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.92.1)
[✓] Connected device (5 available)
[✓] Network resources

It is working fine on my side. What does the icon look like when you inspected the widget?
https://github.com/user-attachments/assets/219d4bdd-f73f-43d5-886a-af565387c078

i found out that i was testing on iphone 14 pro simulator as it worked well on android i thought it just a simulator issue didn't that matter
But then my co-worker sent me screenshot showing as same issue appered in his phone at the moment i didn't realize that he had iphone 14 pro too.
So maybe it issue persists only on iphone 14 pro
https://github.com/user-attachments/assets/f10113c0-7cee-4912-b50a-f542b1e59308

Closing this as a duplicate of https://github.com/flutter/flutter/issues/153036, please follow it for updates.


Correctly retrieve type when declared directly

You can declare the type of mongoose fields directly, without using an object, like { field: String } or { field: Schema.Types.ObjectId }.
Fixes #87
https://runkit.com/jcmais/5900b3565581b700125e1ab5

Nice!

@JCMais: would you mind adding a test for this?


Crashes and communication problems after 01/06/2024

Since 06/01/2024 I have had problems with the plugin in VsCode. The chat stopped responding and started showing the attached screen. If I access the chat via AndroidStudio it works, but very slow. I use the openai platform and the chat within the platform works correctly.

I understand that you are experiencing issues with the extension. To ensure everything works correctly, please provide information about the versions of Node, VS, and the extension you are using.
Additionally, if you use the Free plan account, as shown in the image, you may have exhausted your daily interactions. Furthermore, it is necessary to connect the account from the playground. You can follow the tutorial below: https://www.youtube.com/watch?v=yErnyqXobcI

@brunojet Also, if you want to use other OpenAI models, you can follow the tutorial below. https://docs.codegpt.co/docs/tutorial-ai-providers/openai


SCRD-6919 Address layout problems with smaller screens

The styling attempted to visually merge the top title bar with the areas
below it (the left nav bar and the main content window), and to force
the left navbar to be drawn when it otherwise would not be. This caused
a number problems when viewing on a modest sized screen (1024 width) or
when resizing.
Removed some of the custom nav bar forced styling and let the
underlying styles of horizon and bootstrap correctly hide and show
the navbar when appropriate.  Also collapsed some of the repetitive
css into more friendly scss nested styles.

on my local system with this update (and with your VM as the backend) I get a django error on the network topology page... I dont think its theme related, but if I load up the Horizon on the VM directly (which doesnt have the latest version of this) the same page works... so that might be worth double checking

as long as we can confirm that the topology issue isnt tied to the theme, the rest of this looks good! heck of a cleanup from yesterday

on my local system with this update (and with your VM as the backend) I get a django error on the network topology page... I dont think its theme related, but if I load up the Horizon on the VM directly (which doesnt have the latest version of this) the same page works... so that might be worth double checking

I installed this pull request onto http://<IP_ADDRESS>:8000 , so you can see it running there. It does not have these error messages.

@GarySmith  thanks for the fixes. I tried it looks good. The only issue I saw is sometimes the side bar is not all the way down. I am not sure it matters or not. I remember Cynthia helped me fixed that problem a while ago.

huh, I thought I saw the sidebar go all the way down, I may need to reload

@GarySmith thanks for the fixes. I tried it looks good. The only issue I saw is sometimes the side bar is not all the way down. I am not sure it matters. I remember Cynthia helped me fixed that problem a while ago.

I haven't seen this anywhere. Can you give any details on how I might reproduce that?

ah! I see the issue on pages that scroll vertically... maybe try 100vmax rather than 100vh

ah! I see the issue on pages that scroll vertically... maybe try 100vmax rather than 100vh

ah! I see the issue on pages that scroll vertically... maybe try 100vmax rather than 100vh

Thanks, will do.

@GarySmith  I sent you the picture in private chat

ah! I see the issue on pages that scroll vertically... maybe try 100vmax rather than 100vh for the sidebar height

Tried that, but it really doesn't work on square layouts or any screen where the height is greater than width. I'm open to any other ideas; nothing I am trying is working

one potential fix for this... give the body an explicit background-color that matches the sidebar ... then give the content_body an explicit background color of "white"... change the "padding-left: 220px" to "margin-left 220px" on the #content_body css entry .... there may be a better way, thats just one hack at it

one potential fix for this... give the main_content element an explicit background-color (#071B2A) that matches the sidebar ... then give the content_body an explicit background color of "white"... change the "padding-left: 220px" to "margin-left 220px" on the #content_body css entry .... there may be a better way, thats just one hack at it
I havent confirmed how this solution impacts horizontally scrolling pages yet (though there should be less of those after the previous changes)

I was thinking along those same lines but couldn't get it to work, but your post made my retry and I found a solution that seems to work without monkeying with margins/padding

one potential fix for this... give the main_content element an explicit background-color (#071B2A) that matches the sidebar ... then give the content_body an explicit background color of "white"... change the "padding-left: 220px" to "margin-left 220px" on the #content_body css entry .... there may be a better way, thats just one hack at it
I havent confirmed how this solution impacts horizontally scrolling pages yet (though there should be less of those after the previous changes)

I was thinking along those same lines but couldn't get it to work, but your post made my retry and I found a solution that seems to work without monkeying with margins/padding

Doh, that doesn't work either. On a window with limited vertical content, the bottom of the screen is painted with the dark blue background.

one potential fix for this... give the main_content element an explicit background-color (#071B2A) that matches the sidebar ... then give the content_body an explicit background color of "white"... change the "padding-left: 220px" to "margin-left 220px" on the #content_body css entry .... there may be a better way, thats just one hack at it
I havent confirmed how this solution impacts horizontally scrolling pages yet (though there should be less of those after the previous changes)

I was thinking along those same lines but couldn't get it to work, but your post made my retry and I found a solution that seems to work without monkeying with margins/padding

Doh, that doesn't work either. On a window with limited vertical content, the bottom of the screen is painted with the dark blue background.

And now that I've seen it once, I cannot find such a short screen again in any of the menus.

The two hamburger menu buttons that appear below 768px width do not have a SUSE border or hover color. May want to use #071B2A we seem to be using that for similar color replacements.

Done

Personally the white on blue, then abrupt blue/grey on white navbar below 768px is rather jarring. Would it be possible to make it a single color background?

I agree that the dark menu with the light body is jarring, but I'm not sure what alternative exists withing the SUSE color scheme. Feel free to submit a PR that addresses this.

Should it be possible to open both hamburger menus at the same time? I would expect when opening one the other would automatically close.

The current behavior matches that in vanilla horizon. Behavior changes would fall outside of styling and would require patching the horizon source, and maintaining those patches in IBS, and I don't think we want to go there.

The hamburger menus gain focus when clicking them which gets especially confusing when swapping between them, or clicking other things on the screen. I'm thinking they should remain a single color when focused, or should only be colored when their menu is open

Agreed, but this is also the standard behavior in horizon (see previous comment about modifying behavior)

The z-index for the sidebar is 3, which matches the z-index for the pagination meaning the pagination will be over the sidebar when its expanded. This can be seen on the theme-preview page.

I'm not sure I understand the problem. Below is a screenshot with scrolling and an expanded navbar, and to me, it looks fine that the scrollbar is on top of the sidebar. Perhaps I'm missing something?

The new change changing the body background-color leads to an odd situation on Project > Compute > Instances where you get this:

Done.

The actual functionality of the two menus seems to be working great. It is fully covering the left side, and is correctly colored as far as I can tell.

I don't mean to be dense, but I'm not clear what the problem is. I would expect both the vertical and horizontal scroll bars to be in front of / above the content.

In the image above the current page indicator on the pagination component is above the sidebar. The "1" inside the green square is above the vertical sidebar.
I think the confusion is I'm not talking about the scroll bars, but the sidebar (the vertical menu).

ok, I get it now. I was interpreting pagination controls as scroll bars, which is not what you meant

Looking good with the changes :+1:


How can I make Flutter use the Device's Default Font?

chinese text random show error ;
so, i have a question: How can I make Flutter use the Device's Default Font?
i cant't get answer from stackoverflow.

You can try ThemeData.fontFamily

i have same question

is there a way to check for the system font and maybe then use it in my flutter project at runtime

There is an approved answer on SO https://stackoverflow.com/a/52231172, I think it's safe to close the issue.


Hiding read posts

Is it possible to hide read posts?
I got used to this feature in Joey.

I don't think it's currently possible. You can have reddit site-wide settings do that, instead of having a per-app setting. Though even that only hides the ones you have up/down-voted.


Export does not export theme with correct names; save colors saved or rename files correctly

When I export Android XML, I do not see the the theme name correctly exported.
Please provide documentation or explain how to export customized xml/json files. Thank you!

created new theme:
tester

customized new core colors

export Android view

'material-theme' shows up instead of 'tester'

when i open the files these are what i see:

Since I have a custom theme 'tester' and it's actively up, i would expect to be able to export out the custom theme in xml, json files, etc.

Please help explain how I might export the custom themes created as android /json files

Can you close the Material Theme Builder plugin and try running again? There is a new version out.
The previous versions didn't rename the export to the theme name, it would export as 'material-theme, but the colors are updated. #F90087 is your pink source color.

so the new version will rename?

Yes

i can't seem to remove the plugin and it shows it as locked;—how can I update the plugin?

In digging through the plugin docs for Figma it looks like:

updated versions are automatically published for users
there isn't a clear way to remove the plugin to 'reinstall'

Oh! Can you message me internally at ivyknight?


Is it safe to delete migration files after they have been migrated?

Context
We have some migrations files that are transitory in nature, and aren't DDL related. For example, fixing a data quality issue by running a query.
Once this migration runs, and we verify that the data is of good quality, we could then delete the migration file, as it will never be needed.
Otherwise, we have to always run that migration in tests, which slows it down a bit, even if it produces no changes.
Question
Can we delete/remove the migration file from the repo permanently and not break compatibility?
Will node-pg-migrate ever look at past files that have been migrated?

Hey @moltar , thank you for the question!
We check the order of migrations by checking values that we store in the table of the migrations that are run already for the current DB vs the sequence of the files that we find. So if you delete a file somewhere in the middle of the migrations array - say 1_m and the following migration is 2_m - then the migrate command will fail with message: Not run migration 2_m is preceding already run migration 1_m. which means that node-pg-migrate sees that there is a run migration but encounters the wrong file and thinks that it's something out of order.
See also https://github.com/salsita/node-pg-migrate/blob/32b7185f259e71e3c69045852079931bfba7ad85/src/runner.ts#L143-L152
So you can't remove the file. You can hack it probably by removing the record in the migrations table together with the file but I would not recommend it in the production db. At the end, in my opinion if you create the whole schema from scratch, of course, you gonna do smth unnecessary as instead of directly creating a schema you do it in steps that could become redundant with time - esp. smth like add column -> remove column -> add it again. I don't think it's meant to be optimized this way.

btw also there is a configuration parameter - check-order in CLI or checkOrder in programmatic API

Closing, let me know if you have further questions and feel free to reopen! thanks!


⚠ Bofrost.lu has degraded performance

In ed14ec2, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 905 ms

Resolved: Bofrost.lu performance has improved in 7788f22 after 25 minutes.


Ability to search in a workflow

As workflows get larger it can be difficult to find the area you want to concentrate on. Being able to find particular nodes in the workflow will allow users to more easily use the editor and add nodes to it.

Added a progressive search. Each search is based on the previous. Added a reset button to clear search back to the original graph setting. Each search will try and keep the entire set of matches on the screen.


How to make auto open the note when use the command Create a new 'xx' from the current node?

At first I think I exec the command  Create a new 'xx from the current node` failed, since  the new note haven't been opened, I think the create is failed. But I found that the node is created but not jump to open it automatically , so how to auto open the note after create?

sorry my mistake, the note already create but not auto open it, I thought the create failed, how to set auto open the file, after the create command exec?

That's strange, it should already open automatically.
When you run the command, do you get any errors in the console?
Press Ctrl + Shift + I to open the console

Please let me know if this still happens on the latest version.
If so, check if you get any errors in the console

Now that I've reimplemented threading in v4, I'll consider this complete


Suggestion: Return video suggestions

It would be awesome to retrieve the suggestions when you are inside a video.

update in 1.1.0 version


[Bug] failed to run custom build command for librocksdb-sys v6.28.2

🐛 Bug Report
I'm unable to run my miner now for some reason. The build is getting stuck and exiting at failed to run custom build command for librocksdb-sys v6.28.2.
I'm simply following instructions on the readme to get started.  I've opened ports 4132 and 3032 but am still getting the below error.
Steps to Reproduce
./testnet2_ubuntu.sh
Expected Behavior
I expeced the script to correctly install and build snarkos on my machine.
instead I am getting the below error about not being able to build ibrocksdb-sys.
The following packages were automatically installed and are no longer required:
  linux-headers-5.4.0-94 linux-headers-5.4.0-94-generic
  linux-image-5.4.0-94-generic linux-modules-5.4.0-94-generic
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
info: downloading installer
info: profile set to 'default'
info: default host triple is x86_64-unknown-linux-gnu
warning: Updating existing toolchain, profile choice will be ignored
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.58.1 (db9d1b20b 2022-01-20)

Rust is installed now. Great!

To get started you may need to restart your current shell.
This would reload your PATH environment variable to include
Cargo's bin directory ($HOME/.cargo/bin).

To configure your current shell, run:
source $HOME/.cargo/env
  Installing snarkos v2.0.0 (/root/snarkOS)
    Updating crates.io index
    Updating git repository `https://github.com/AleoHQ/snarkVM.git`
   Compiling proc-macro-crate v0.1.5
   Compiling h2 v0.3.11
   Compiling librocksdb-sys v6.28.2
   Compiling jsonrpc-core v18.0.0
   Compiling snarkvm-derives v0.7.5 (https://github.com/AleoHQ/snarkVM.git?rev=e0462bf#e0462bfd)
error: failed to run custom build command for `librocksdb-sys v6.28.2`

Caused by:
  process didn't exit successfully: `/root/snarkOS/target/release/build/librocksdb-sys-f98c597b01250731/build-script-build` (exit status: 101)
  --- stderr
  error: header 'rocksdb/include/rocksdb/c.h' does not exist.
  thread 'main' panicked at 'unable to generate rocksdb bindings: ()', /root/.cargo/registry/src/github.com-1ecc6299db9ec823/librocksdb-sys-6.28.2/build.rs:44:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `snarkos v2.0.0 (/root/snarkOS)`, intermediate artifacts can be found at `/root/snarkOS/target`

Caused by:
  build failed
==================================================
 Attention - Please ensure ports 4132 and 3032
             are enabled on your local network.

 Cloud Providers - Enable ports 4132 and 3032
                   in your network firewall

 Home Users - Enable port forwarding or NAT rules
              for 4132 and 3032 on your router.
==================================================
Skipping adding existing rule
Skipping adding existing rule (v6)
Skipping adding existing rule
Skipping adding existing rule (v6)

Your Environment

Rust 1.58
ubuntu 20.04 (LTS)x64

It's a rocksdb bug: https://github.com/rust-rocksdb/rust-rocksdb/issues/602; we will update that crate as soon as the new release is out.


Weird behavior on close button from challenge view while the eye button is toggled

Describe the bug
Not sure if its intended but while having the eye button toggled if i try to use the close button to get back to the challenge list it will instead untoggle the i button making it a little confusing on how to get back to the list. It does seem like the x button and the i button are doing the same thing except that the x button disappears with the challenge info when clicked.
To Reproduce
Steps to reproduce the behavior:

Go to Learn
Open any challenge
Click the eye button to toggle it
Click the X button at the top

Expected behavior
Would be more intuitive if the close button would just close the challenge and move the user back to the challenge list.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):

Device: Iphone 15 and Iphone SE
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
I can work on this if this behavior is not intended

duplicate of #1179


{Upgrade} Retrieve latest version from main branch

Description
Due to the renaming of master to main, master branch is no longer maintained.
az upgrade should fetch the version from main branch instead.

This problem is currently mitigated by manually fast-forwarding master to main so that https://raw.githubusercontent.com/Azure/azure-cli/main/src/azure-cli/setup.py is still available.

Upgrade


JAVA virtual thread support to replace the innner request thread pool on JDK 21 and later.

Project Loom, known as JEP 425 has published in JDK 19 as preview features.
Spring community is also embracing the change.
Tomcat also add support as preview feature
Is there any roadmap for okhttp support it since it will be officially publish with JDK 21, probably at 09/23.

We looked at it in https://github.com/square/okhttp/pull/7367
It's likely blocked on okio first. I think it should work well given okio/okhttp design.
A lot of changing synchronized blocks to locks and conditions, that should be fine even without loom.

Okio issue https://github.com/square/okio/issues/1169

While we can always test, benchmark more, the okio and okhttp support is in place. Can incrementally fix more as we go.


Does this support the defining-custom-keywords functionality given by AJV

I was hoping to see if this Library support creating validation scenarios that is already supported by ajv.
Usecase
Need to handle customer swagger schema element validations
https://github.com/epoberezkin/ajv/blob/master/README.md#defining-custom-keywords

I don't think so. PRs welcome! And I think https://www.npmjs.com/package/express-ajv-swagger-validation already has support for it, so you may give it a try.

thanks :) i used https://www.npmjs.com/package/express-ajv-swagger-validation it works and matches  my use case

@ksuperman Happy to hear that!


Please improve exceptions

It would be nice, if the AL Language Extension would produce more human readable error messages.
Please add more information, e.g. which AL file and which line this exception occurred, so I'm able to produce a proper bug report here.
Currently both exceptions point to the app.json, which I can exclude by the class name Rule087DoOnlyLowerPermissionsInsideTestProcedures and Rule205VariablesMustAlwaysBeInitialized.
{
	"resource": "/c:/Users/myuser/source/repos/MyApp/app.json",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "AD0001",
	"severity": 4,
	"message": "Analyzer 'Microsoft.Dynamics.Nav.CodeCop.Design.Rule087DoOnlyLowerPermissionsInsideTestProcedures' threw an exception of type 'System.InvalidCastException' with message 'System.InvalidCastException: Unable to cast object of type 'Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.VariableListDeclarationSyntax' to type 'Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.VariableDeclarationSyntax'.\r\n   at Microsoft.Dynamics.Nav.CodeCop.Design.Rule087DoOnlyLowerPermissionsInsideTestProcedures.AnalyzeVariableList(SyntaxNodeAnalysisContext ctx) in D:\\a\\1\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeCop\\Design\\Rule087DoOnlyLowerPermissionsInsideTestProcedures.cs:line 45\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass52_1.<ExecuteSyntaxNodeAction>b__1() in D:\\a\\1\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\DiagnosticAnalyzer\\AnalyzerExecutor.cs:line 742\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info) in D:\\a\\1\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\DiagnosticAnalyzer\\AnalyzerExecutor.cs:line 1099'",
	"source": "AL",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
}

{
	"resource": "/c:/Users/myuser/source/repos/MyApp/app.json",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "AD0001",
	"severity": 4,
	"message": "Analyzer 'Microsoft.Dynamics.Nav.CodeCop.Design.Rule205VariablesMustAlwaysBeInitialized' threw an exception of type 'System.InvalidCastException' with message 'System.InvalidCastException: Unable to cast object of type 'Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.VariableListDeclarationSyntax' to type 'Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.VariableDeclarationSyntax'.\r\n   at Microsoft.Dynamics.Nav.CodeCop.Design.Rule205VariablesMustAlwaysBeInitialized.InitializeGlobalVariablesAnalyzer(SyntaxNodeAnalysisContext syntaxNodeAnalysisContext) in D:\\a\\1\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeCop\\Design\\Rule205VariablesMustAlwaysBeInitialized.cs:line 105\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.<>c__DisplayClass52_1.<ExecuteSyntaxNodeAction>b__1() in D:\\a\\1\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\DiagnosticAnalyzer\\AnalyzerExecutor.cs:line 742\r\n   at Microsoft.Dynamics.Nav.CodeAnalysis.Diagnostics.AnalyzerExecutor.ExecuteAndCatchIfThrows_NoLock(DiagnosticAnalyzer analyzer, Action analyze, Nullable`1 info) in D:\\a\\1\\s\\source\\Prod\\Microsoft.Dynamics.Nav.CodeAnalysis\\DiagnosticAnalyzer\\AnalyzerExecutor.cs:line 1099'",
	"source": "AL",
	"startLineNumber": 1,
	"startColumn": 1,
	"endLineNumber": 1,
	"endColumn": 1
}

There are various bugs with things being attributed to app.json when they shouldn't. Repros for these might help MS fix that.

This seems more like a systemic problem; these exceptions never give the file that they are triggered by so the only way to find them is some sort of project bisection. This is not really reasonable (currently for me 500 files and 6347 files -- a baseapp with about half the changes moved into another extension).
It should be pretty easy for Microsoft to have the exception handler (carefully) rummage around for at least a source file; hopefully a line number too.

This is a good point! The main challenge is that these rules do not run on a file or even an object, they are decoupled from that concept. We'll see what we can do

Object Type and Object No. would also help

I think this should me marked as bug, since theses errors let pipelines crash.

@atoader I think i found one source for this problem.
An old compiler e.g. for BC16 isn't capable of handling a ruleset with CodeCop Rules that are only available in newer versions.
I compile a project with the a ruleset file containing the following part:

        {
            "id": "AS0092",
            "action": "Info",
            "justification": "Only inform: The 'applicationInsightsKey' property must specify the instrumentation key of the Azure Application Insights resource for monitoring operations related to this extension. See https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-overview for additional information."
        },

Everything works fine with the current AL Language Extension.
But as soon as I try to compile this with an old AL Language Extension (Downloaded together with the Artifacts), I receive the following error:

warning AD0001: Analyzer 'Microsoft.Dynamics.Nav.CodeCop.Design.Rule205VariablesMustAlwaysBeInitialized' threw an exception of type 'System.InvalidCastException' with message 'System.InvalidCastException: Das Objekt des Typs "Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.VariableListDeclarationSyntax" kann nicht in Typ "Microsoft.Dynamics.Nav.CodeAnalysis.Syntax.VariableDeclarationSyntax" umgewandelt werden.

We are looking at old issues to evaluate if the problem is still there. The issue here is quite complex. The errors mentioned are all fatal errors that cause an analyzer rule to crash due to bugs in the rule implementation or the code that the rules are referencing.
We cannot give better error messages here than the stack trace since the failure could be from code trying to initialize some cache or analyzing some dependency of a file or anything else really.  Even we have to often dig into the code to find out where the issue came from and unfortunately there's no magic way to trace these to a file. The way to deal with these failures is to report the stack traces so they can be fixed.
It is also not possible to be more resilient to these failures through a generic way, because since they're fatal, they could be corrupting state. The fact that they exist points to a testing gap and we will keep this into account in the future to try to improve how we do with these.
With this, I will be closing this bug.


The timestamp type value returned by the query is incorrect (edql version 1.9.11)

elasticsearch version 5.5.1
edql version 1.9.11
The timestamp return value is incorrect
Actual value:<PHONE_NUMBER>000
Query return value:<PHONE_NUMBER>

Hi @liucm-it  edql v1.9.12 released, fix the number overflow issue.
Since Jetbrains still reviewing the new version, you can manually download, and reinstall plugin: Download from Jetbrains
full release document: https://github.com/chengpohi/edql/releases/tag/v1.9.12

@chengpohi Ok, thank you for your hard work


wip: new readline library

This is simplified version of the readline library which cuts out a lot of the complexity of the version that we were using. There's still a few things to add like "history" and getting the multi-line prompts working correctly, but most (many?) things should be more or less working, including:

Each of the Ctrl-? chars (Ctrl-d, Ctrl-k, Ctrl-c, Ctrl-u, Ctrl-a, Ctrl-e, Ctrl-l, etc.)
Line wrap with backspace/arrow keys
Entering/exiting raw mode

Would love some feedback if people could try it out.

🚀
Small few things (optionally for later):

alt+left and alt+right
tab key seems to throw it out of wack
history: when pressing down it to the "current message" would be awesome if it kept the buffer I had

Is this in v0.1.5? The model directory doesn't seem to change.
I also tried to symlink the folder (to an NTFS external drive) but since the file names have colons, it failed. Any ideas?


Remove unnecessary checkout, extract values to secrets

Checking out the code is not necessary to trigger the deployment via URL, as the code is not used or transferred.
Not sure if the same applies to the API trigger, so I did not remove that, but I would assume it does.
Also extracted some values to GitHub secrets, to encourage best practices.

Thanks! You can remove the check out from both sections :)

Done!

Thanks!


Weekly Report 2023-02-19

Fixed a bunch of bugs with high score board and menu switching, also closed #165, #181, #192 through #211

None this week

The following team members did not participate this week:
@cSwiggitySwooty NoWeeklyReport492
@OTBond NoWeeklyReport492
@xslau NoWeeklyReport492

@xslau and @OTBond have zero commits this semester:

https://github.com/SCCapstone/RubberDuck/commits?author=OTBond
https://github.com/SCCapstone/RubberDuck/commits?author=xslau


Is there a way to implement doorhanger UI ?

It would be a big UI plus
Something like this:

See https://github.com/maxogden/menubar/issues/78

See https://github.com/maxogden/menubar/issues/78

You could use Statut or QuarkShell

You could use Statut or QuarkShell


Error importing axelerate python3 library (Illegal instruction (core dumped))

Describe the bug
I'm trying to train a Mobilenet inside a fresh installed Ubuntu 18.04. After running pip install axelerate (or pip install -git+https://github.com/AIWintermuteAI/aXeleRate) I can't import axelerate inside python3.
To Reproduce
I don't think it is going to be easy to reproduce it because of my environment. I'm running a Windows 10 Server with an Oracle VirtualBox. Then I installed a fresh Ubuntu 18.04 and upgraded the system with python3, build-essentials and some other libraries.
Installed axelerate through pip and then the error comes in
Expected behavior
Expecting just to import normally.
Screenshots
The error is in portuguese, but it is a Illegal instruction error and python crashes

Environment (following the order):

Windows Server 10
Oracle VM VirtualBox
Ubuntu 18.04
5.4.0-66-generic headers

Additional context
I'll also try to create another VM locally or on cloud to test it. I was originally running my tests on a Windows 10 normal machine, with all dependencies installed, but training isn't working as well there, so I switched ambient to test and train my network. On the Win machine, the script isn't finding training and validation images, I'll create another issue if I can't sort it out myself.
Thanks in advance

Hi there! illegal instruction is an indication of problem with running tensorflow on your machine - meaning the python import works normally, but when you do
import axelerate
internally it starts with importing tensorflow, where you get illegal instruction
Check the issues related to import tf illegal instruction on Google or
https://github.com/tensorflow/tensorflow/issues/17411
Most likely it is the old CPU issue - newer (starting from 1.15) versionf of tf binaries for x86 systems are compiled with AVX instruction set support and will not run if your CPU doesn't support it.
By the way, you can check if it is TensorFlow error by just doing
import tensorflow

Thanks man, unfortunately I'll have to build tensorflow from scratch but it is what it is. I think things will work fine after that, thanks again.


Show "No block producer running" in coda client status output next block produced in

Per this conversation on Discord: https://discord.com/channels/484437221055922177/601215883939020852/787348528224534549
It can be confusing that when not running a block producer the user sees "None this epoch... checking at xxx"
If "Block producers running" is 0 could it display "No block producers running" or similar?

Closing this issue as it is stale for a long time.


[WIP] - GOVUK gem

What's the status with this PR @StupidCodeFactory ?

@alan this is waiting to adapt https://github.com/ministryofjustice/gov_uk_date_fields to active model We haven't got around to do that, it should be a rather easy change

@StupidCodeFactory can we close this until it gets picked up again?

@alan It's not really my call to make


Problem with conexion

Hello, I have a problem, I currently have Homebridge running on Mac OsX, all right, but I would like Homebridge to run on raspberry. I made homebridge in raspberry but when I add the accessories to Homebridge raspberry, everything gives me error, I can not run, I use the same file but change port number, PIN, username and name. I don't understand the reason for the mistake. I tried to restore factory router and nothing, someone could help me??
Thanks

Same Problem Here


Collapsable sections

#42

@stspasow please rebase

@stspasow it doesn't seem to be working properly. Can you check again?

It appears that sectionIndex that is passed in toggleNameToMarkdown and other functions is always undefined

I fixed that issue yesterday here. Could you rebase and check again?

Done. I think it is ok now.

Still, there is some problem, only one section is able to convert into an accordion at a time. Also, the converted section automatically moves to the top of the preview instead of retaining its position.

Sorry, I could not reproduce what you described, but passing just activeSectionIndex made the switches unswitcheble. Could you check if this is ok with you?

True that! the switches are not working as intended. I'll fix it and then we can move forward with collapsable sections.

I've fixed it. Could you merge the changes and check if collapsible sections are working?

Yup, they look ok.

I've been a bit busy lately. Thank you for being patient, will review your commits soon.


Error not descriptive enough when argument list contains both named returns and non named returns

Currently when the method signature consist of both named returns and non named returns, following error message is given.
resources/services/DBStoredProcedureTest.bal:351:82: unwanted token ','
This is descriptive enough for a user as it does not give a informative enough description of what the issue is.

Tested following sample
function main (string[] args) {
   _, _ = test();
}

function test()(string x, int){
    x = "abc";
    int i = 10;
    return x,i;
}

And following error is reported by the new compler.
error: pkg.bal:6:30: mismatched input ')'. expecting {'[', Identifier}
Hence closing this issue.


DefaultNamedDomainObjectCollection stores objects by getName() but looks them up by objectName

Current Behavior
The behavior of DefaultNamedDomainObjectCollection in terms of storing and looking up existing objects is inconsistent when getName() is overwritten and does not simply return the name of a container object.
Here's an example to make that more clear:
Let's assume we're using a custom plugin providing an interface based on NamedDomainObjectContainer in build.gradle.kts:
plugins {
   id("pets")
}

pets {
   dogs {
   }
}

Now let's assume that we have a common Dog base class implements the Named interface and - for whatever reason - doesn't simply return the name of the container object passed in build.gradle.kts but modifies it, e.g. like this:
abstract class Dog @Inject constructor(private val objectName): Named {
   // Appending the dog's runtime class name enables us to store more than one dog with the same object name
   override fun getName() = "${this.containerObjectName} "$objectName (${this.javaClass.superclass.simpleName})""
}

Now let's define to dogs with the same objectName:
pets {
   dogs {
      create<Beagle>("Berry")
      create<Greyhound>("Gerry")
      // Define a second dog with objectName "Berry"
      create<Beagle>("Berry")
   }
}

Listing the created dog objects, we see there're only two dogs in the collection (would expect three):
./gradlew listDogs

> Task :listDogs
Hi, my name is Berry (BeagleImpl)
Hi, my name is Gerry (GreyhoundImpl)

BUILD SUCCESSFUL in 1s

The created dog objects are added to the collection of objects as follows (source: DefaultNamedDomainObjectCollection.java):
 protected <I extends T> boolean doAdd(I toAdd, Action<? super I> notification) {
        final String name = namer.determineName(toAdd);
        if (index.get(name) == null) {
            boolean added = super.doAdd(toAdd, notification);
            if (added) {
                whenKnown.execute(new ObjectBackedElementInfo<T>(name, toAdd));
            }
            return added;
        } else {
            handleAttemptToAddItemWithNonUniqueName(toAdd);
            return false;
        }
    }

Note that name is derived from what getName() provides, which would be Gary-Smith for both dogs. The case when trying to add another item with a name that already exists should be catched by handleAttemptToAddItemWithNonUniqueName(). However, this is how the implementation of this function looks like:
protected void handleAttemptToAddItemWithNonUniqueName(T o) {
   // do nothing
}

So the second dog simply get's ignored without the user being aware of this at first glance. I guess this is not how such a case should be handled.
However, there's a bit more to that issue: Given the case that we're NOT customizing the the return value of getName() things are different. So let's assume getName() looks like this:
abstract class Dog @Inject constructor(private val containerObjectName, private val surname): Named {
   // Simply return the object name passed to the create function in build.gradle.kts
   override fun getName() = "${this.containerObjectName}"
}

Now we're getting an exception running Gradle:
FAILURE: Build failed with an exception.
* What went wrong:
Cannot add a Dog with name 'Gary' as a Dog with that name already exists.

This is the expected behavior. But why does it work in this case? There's another duplication check in DefaultNamedDomainObjectCollection before a new object gets added, but hasWithName (source)is using the object name that has been passed to create() instead of the getName() return value.
protected void assertCanAdd(String name) {
   if (hasWithName(name)) {
      throw new InvalidUserDataException(String.format("Cannot add a %s with name '%s' as a %s with that name already
         exists.", getTypeDisplayName(), name, getTypeDisplayName()));
      }
   }

Expected Behavior
Given the case I described above, I'd expect handleAttemptToAddItemWithNonUniqueName to throw a runtime exception if a duplicate is found instead of silently accepting it.
Additionally, hasWithName() should also use the return value of getName() to check for duplicates instead of only looking for the container object name.
Steps to Reproduce
Example code: https://github.com/apophizzz/gradle-domain-object-container-issue

Checkout project code
Execute ./gradlew listDogs -> You should see an Exception due to two objects being named "Berry"
Navigate to class [Dog] (https://github.com/apophizzz/gradle-domain-object-container-issue/blob/8ff93621ecd99d2b060374d4eb1b25028ac8bb18/buildSrc/src/main/kotlin/com/foo/pets/dog/api/Dog.kt#L8)
In the following function

 override fun getName(): String {
    return "$objectName (${this.javaClass.superclass.simpleName})"
    //return objectName
}

Switch return statements by commenting out the first return statement and un-comment the second return statement.

Execute ./gradlew listDogs again -> Build should complete successfully
You should see only two objects listed instead of three defined in build.gradle.kts

Gradle version
Gradle 7.6 & 8.4
Build scan URL (optional)
No response
Your Environment (optional)
No response

The issue is in the backlog of the relevant team and is prioritized by them.

There should be a stricter validation of the added object, and the contract of getName should be clarified.


How could we call to the $scope.select function inside the callback functions (on-select-all, on-select-none, ...)?

I would like has only one button to select or unselect items. I tried to edit the template and I tried to call inside the following callbacks but I didn't find the way:
on-select-all="fSelectAll()"
on-select-none="fSelectNone()"
on-reset="fReset()"
on-clear="fClear()"

Probably we would need one of the next things:

Pass the directive $scope in the callback (the scope has the select function)
Creating some button inside the directive
Pass the $event in the callback?

Hi @danicomas ,
Unfortunately there's no such option - you'll need to modify things yourself.
Since you tried to edit the template, I can say that you're on the right direction. Create a button to directly modify the input-model. Just loop over the input-model, and set the selected property to true.
The directive's $watch-ers should then proceed with the rest.


completely changed the UI and the CSS

made several changes to the UI , hope u like it ;) .
Please accept the PR

@T-Rahul-prabhu-38 does not look good.

what colour do u prefer? dark theme?

@T-Rahul-prabhu-38 someone is working on it. I will suggest to you the changes you can make. Wait for a few hours, I will assign you the task for sure.

@T-Rahul-prabhu-38 sync for repo and discard the changes you have made. Fix the height of the navbar and also change background color of footer .


Fix LightningDeprecationWarning: DataModule.setup has already been called #9943

What does this PR do?
Fix LightningDeprecationWarning: DataModule.setup has already been called #9943
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes? (if necessary)
[x] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃
Yes

https://github.com/PyTorchLightning/pytorch-lightning/pull/9970 is the new pull request


Feature/7412 get service recipients

Story: AB#7412
Task: AB#7467

My own fault but would you mind looking at some of the changes that looks like the whole file has changed & make sure the line endings are set to LF please? e.g. ServiceRecipientsSectionController


jenkins trigger commit test

@AlexeyGorelik Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Always meet a bug when apply to my dataset

Hi, @gdewael ,
Thanks for your great work. I am using the pre-trained model to impute my dataset. However, when I am executing dm.setup(None). I always met a bug that the out-of-range exception in the cuts = torch.tensor([(indices[i],indices[i+self.segment_size-1]) for i in cuts_]) given here and the code would go to the exception branch because my indices cannot cover the whole the chromosome due to the mask. Do you have some suggestions?
Thanks!

Hi! Thanks for trying our code.
I implemented this exception to catch the case in which a chromosome has fewer CpG sites (computed here) than expected to make a whole segment (a segment is what is input to the model all at once, kind of like how you would cut up sentences to input in NLP). If this expection is triggered, it will just make one segment for the whole chromosome. So in essence, this exception is not an error.
If this doesn't solve your issue, is there a way to generate some toy data to reproduce the issue?
Best, Gaetan

Hi, @gdewael
Thanks for your quick reply. I think I have found the issue, which is from my code rather than your code. I would close this issue after I verify all my chromosomes.
Thanks!


Add a limited sheet

Add a limited sheet so when players use this sheet, other players can't see the entire sheet if they have the role to limit their view of the sheet.

Done in 0.6.8


Substra

Pre-submission checklist:
Please check each of these after submitting your pull request:

[x] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[x] Is your project closed source or, if it is open source, does your project have at least 250 GitHub stars?
[x] Have you picked the single best (existing) category for your project?
[x] Does it follow the other guidelines from the new entries section?
[x] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[x] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[x] Does your project/product name match the text on the logo?
[x] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[x] ~10 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

Substra framework is a low-layer tool, offering secure, traceable, distributed orchestration of machine learning tasks among partners. It aims at being compatible with privacy-enhancing technologies to complement their use to provide efficient and transparent privacy-preserving workflows for data science. Its ambition is to make new scientific and economic data science collaborations possible.
We haven't all the stars required in the main Substra's repo but we have several repos with the required number of stars.


[BUG] System.IO.IOException: Data error (cyclic redundancy check). : 'C:\Users\angel\AppData\Local\Bloxstrap\Downloads\d45304b6aef831ec4572de25e3cf919f'

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] I have thoroughly looked through the available Wiki articles and could not find a solution to my problem.
[X] I am using the latest version of Bloxstrap.
[ ] I did not answer truthfully to all the above checkboxes.

Bloxstrap Version
v2.8.1
What problem did you encounter?
exeption not letting me in roblox
Bloxstrap Log
System.IO.IOException: Data error (cyclic redundancy check). : 'C:\Users\angel\AppData\Local\Bloxstrap\Downloads\d45304b6aef831ec4572de25e3cf919f'

fixed issue please close


Appstudio update test-component-pac-hbif

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-hbif-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
13 seconds
clone-repository

✅ Succeeded
45 seconds
build-container

✅ Succeeded
25 seconds
deprecated-base-image-check

✅ Succeeded
23 seconds
inspect-image

✅ Succeeded
48 seconds
clamav-scan

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
17 seconds
sbom-json-check

✅ Succeeded
7 seconds
label-check

✅ Succeeded
9 seconds
show-sbom

✅ Succeeded
11 seconds
show-summary

Pipelines as Code CI/test-component-pac-hbif-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
15 seconds
clone-repository

✅ Succeeded
32 seconds
build-container

✅ Succeeded
18 seconds
inspect-image

✅ Succeeded
18 seconds
deprecated-base-image-check

✅ Succeeded
8 seconds
clair-scan

✅ Succeeded
17 seconds
sbom-json-check

✅ Succeeded
44 seconds
clamav-scan

✅ Succeeded
11 seconds
label-check

✅ Succeeded
6 seconds
show-sbom

✅ Succeeded
6 seconds
show-summary


Rebuild on itemBuilder change - onSwipe and onTap callbacks

widget listens to changes and updates the UI
onSwipe and onTap callbacks

Hi @soheilqk,
I had previously sent some feedback on your PR. I understand that you might be busy and may not have had the time to address it yet. If you're okay with it, I'd be happy to implement the changes I suggested and merge the PR. Please let me know what you think.
Thank you!


Production WatsonX endpoints

Hi, the library seems to be pinned to the Tech Preview of WatsonX.  The production WatsonX paths are quite different. Is there a near term plan to allow for the production paths to be used?

Hello Garret,
Maybe you are looking for https://github.com/IBM/watsonxdata-node-sdk.

That is a repo for the WatsonX.data - the lakehouse product.
WatsonX.ai (generativeAI / LLM's) have different production paths than the tech preview, which are hardcoded in this library.
Eg: Tech preview vs production endpoints & paths:
Tech Preview: 	https://workbench-api.res.ibm.com/v1/generate
Prod:  			https://us-south.ml.cloud.ibm.com/ml/v1-beta/generation/text?version=2023-05-29

I see; we had an internal discussion about it, and we would like to collaborate on compatibility with WatsonX API.
Let's keep this issue open, and I will post an update here.

Hey Team! Our team is also interested in a package for use with production WatsonX credentials. Is there any update on this?

Hey, we will discuss the SDKs on Monday; if you need to work with WatsonX urgently, you can use their endpoint for the text generation via Rest API.

There is no plan to align NodeJS SDK, only the Python SDK. I will reopen this thread if anything changes.

Thanks Tomas! Yah, we’re presently using the Rest API directly, but we’re interested in a cleaner approach for potential integration with LangChain. Excited to see what comes of this :)

Im sorry to resurect this thread but I am becoming desperate. Where can I find the REST API documentation so I can use the generate functions for chat models in my nodeJS app? I've been looking for hours and I can't find anything. The only thing close to it is the Watson ML API https://cloud.ibm.com/apidocs/machine-learning

Thanks Tomas! Yah, we’re presently using the Rest API directly, but we’re interested in a cleaner approach for potential integration with LangChain. Excited to see what comes of this :)

Im sorry to resurect this thread but I am becoming desperate. Where can I find the REST API documentation so I can use the generate, generate_text and generate_text_stream functions for chat models in my nodeJS app, similar to the mentioned python package? I've been looking for hours and I can't find anything. The only thing close to it is the Watson ML API https://cloud.ibm.com/apidocs/machine-learning

Hey faileon,
I haven't found much in terms of comprehensive documentation for interacting with the prompt lab model API directly. Though the docs you linked are helpful for auth and generation IAM tokens.
The best form of documentation I have found for using the prompt lab model API is the pop up code block within the prompt lab

Using these calls you can interact with the api to generate predictions using WatsonX.ai models.
If this is what you are after I have recently added an integration to LangChain for just this which will likely be deployed by the end of this week.

@faileon for the more complex actions it may be possible to extract the URLs from the Python SDK.
Looks like the endpoints are visible as text or text_stream etc

@faileon for the more complex actions it may be possible to extract the URLs from the Python SDK.
Looks like the endpoints are visible as text or text_stream etc

Thanks, yup seems that reverse engineering python SDK is the only "sane" way. I also found an open api specs somewhere here - https://github.com/watson-developer-cloud/assistant-toolkit/blob/master/integrations/extensions/starter-kits/language-model-watsonx/watsonx-openapi.json
This is super bad developer experience so far...

@faileon we are hoping to publish the API specs soon. The frustration and gap this creates in the meantime is totally understandable: it's a top priority for the watsonx team to close this


Update Vulkan SDK to <IP_ADDRESS> and matching glslang version

Update Vulkan loader and headers to sdk-<IP_ADDRESS>

(Headers are actually sdk-<IP_ADDRESS>, they did not get a re-release.)
Also synced VMA 2.3.0 again, fixing unwanted clang-formatting of
thirdparty code.

glslang: Sync with upstream 4fc7a33 for Vulkan SDK 1.2.131
1231c2e

Fixes #36888.

@bruvzg Could you check if the glslang patch is still needed for macports mingw builds? (For the reference, previous discussion about it: https://github.com/godotengine/godot/pull/29993#discussion_r307967975)
@Faless FYI, this glslang version adds some Emscripten components that we might want to integrate in our buildsystem eventually:
$ ls thirdparty/glslang/glslang/OSDependent/Web/
glslang.after.js  glslang.js.cpp  glslang.pre.js

@Faless FYI, this glslang version adds some Emscripten components that we might want to integrate in our buildsystem eventually:

This is great news! I'll look into that.

The update triggers a crash on Windows 10 with VS 2019:
[0] RtlDllShutdownInProgress
[1] RtlEnterCriticalSection
[2] RtlEnterCriticalSection
[3] loader_platform_thread_lock_mutex (C:\Dev\Godot\godot.git\thirdparty\vulkan\loader\vk_loader_platform.h:344)
[4] loaderScanForImplicitLayers (C:\Dev\Godot\godot.git\thirdparty\vulkan\loader\loader.c:4607)
[5] vkEnumerateInstanceLayerProperties (C:\Dev\Godot\godot.git\thirdparty\vulkan\loader\trampoline.c:218)
[6] VulkanContext::_create_validation_layers (C:\Dev\Godot\godot.git\drivers\vulkan\vulkan_context.cpp:175)
[7] VulkanContext::_create_physical_device (C:\Dev\Godot\godot.git\drivers\vulkan\vulkan_context.cpp:278)
[8] VulkanContext::initialize (C:\Dev\Godot\godot.git\drivers\vulkan\vulkan_context.cpp:1163)
[9] OS_Windows::initialize (C:\Dev\Godot\godot.git\platform\windows\os_windows.cpp:1466)
[10] Main::setup2 (C:\Dev\Godot\godot.git\main\main.cpp:1224)
[11] Main::setup (C:\Dev\Godot\godot.git\main\main.cpp:1166)
[12] widechar_main (C:\Dev\Godot\godot.git\platform\windows\godot_windows.cpp:150)
[13] _main (C:\Dev\Godot\godot.git\platform\windows\godot_windows.cpp:184)
[14] main (C:\Dev\Godot\godot.git\platform\windows\godot_windows.cpp:196)
[15] __scrt_common_main_seh (d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
[16] BaseThreadInitThunk

Investigating...


README and documentation improvements

This branch aims to improve the new user landing experience by explaining more clearly what the project is and how to get started as a user or a developer.
The main target is to have a top-level README that is helpful and then to make the other files that it links to also be helpful.

[x] Top-level README for project overview
[ ] src/README for detailed technical overview
[ ] Snabb NFV high level description
[ ] VPWS high level description
[ ] Packetblaster high level description (e.g. clearly state NIC model requirement)

The snabb --help referred to in this README is now implemented in #470.

Currently directly referencing the Getting Started guide on Max's branch for #439.


Is there any requirement for the size of the input image?

When I try to input a picture of 1080x1920 as input, an error will occur. What size should I align to? Thank you.

I have fixed the bug and can align the height and width of the image to a multiple of 32 to solve it.


Ensure external_scanner_scan returns false for unrecognized tokens

I noticed that clang++ warned here:
deps/tree-sitter-gleam/src/scanner.c:28:1: warning: non-void function does not return a value in all control paths

An explicit return fixes things up.

Thank you!


Don't allow user to define string, and bool properties within module struct

We only allow user to define string & bool properties with blueprint:"mutated" tag.

I'm not sure this is something we want to enforce at the Blueprint level.  Using strings and bools is much simpler, and if you don't have complicated use cases that use append then *string and *bool are unnecessary.


Bot chat gets covered in "This app can not be reached messages" when navigating card action -> tab -> bot chat

Scenario:
App has bot chat and static tab
Bot sends adaptive card with Action.OpenUrl button that links to the static tab (url: https://teams.microsoft.com/l/entity/"+MicrosoftAppId+"/tab")
User clicks button, Teams opens the tab in "full screen" (hides the chat list)
User clicks the "Chat" tab on top and the chat becomes covered in a "this app can not be reached message"
DevTools shows a JSON parser error message
Both Mac and Windows desktop clients are affected, web is working fine

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

ID: 672a763d-189b-8ba0-f66e-c07f1dc0a962
Version Independent ID: 1ac7a9bd-138b-3bf8-60a3-1842d87371fd
Content: Add card actions in a bot - Teams
Content Source: msteams-platform/task-modules-and-cards/cards/cards-actions.md
Product: msteams
GitHub Login: @surbhigupta
Microsoft Alias: lajanuar

Can confirm that we have also had this issue for some of the bots that we have deployed, although strangely not all of them.

Chatting with the bot appears to work, except we've got that error image covering half of the chat area.

Updated the Teams dev preview today and it seems to have been fixed. Any info on when the stable version will be fixed as well?

Tracker: https://github.com/MicrosoftDocs/msteams-docs/issues/4249

@Wajeed-msft Thank you, appreciate it


[2.0.0-preview018, Introspection]  Error: Schema parsing

Context
Currently, I'm using prisma1 this was an attempt to introspect the DB  to upgrade to prisma2

Postgresql 10.11 (Local/Docker)
Ubuntu 19.04
<EMAIL_ADDRESS>
Command Run
prisma2 introspect
Error
Error: Schema parsing
error: Unexpected token. Expected one of: End of block ("}"), field declaration.
  -->  schema.prisma:10
   |
 9 |   version                                                                       Int
10 |   _AccommVoucherToAccommVouchers_AccommVoucherTo_AccommVoucherToAccommVoucher_A _AccommVoucherToAccommVoucher[]      @relation("AccommVoucherTo_AccommVoucherToAccommVoucher_A", references: [A], onDelete: CASCADE)
   |   ^ Unexpected token.
11 |   _AccommVoucherToAccommVouchers_AccommVoucherTo_AccommVoucherToAccommVoucher_B _AccommVoucherToAccommVoucher[]      @relation("AccommVoucherTo_AccommVoucherToAccommVoucher_B", references: [B], onDelete: CASCADE)
   |
    at Object.<anonymous> (/home/will/.nvm/versions/node/v11.15.0/lib/node_modules/prisma2/build/index.js:73435:23)
    at Generator.throw (<anonymous>)
    at rejected (/home/will/.nvm/versions/node/v11.15.0/lib/node_modules/prisma2/build/index.js:73330:65)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)

Oh oh @williamluke4, can you maybe share your sql Schema or the relevant part of it so we can reproduce this? Thanks.

@janpio I just sent you the psql schema backup on Slack

Thanks, posted it internally to https://github.com/prisma/prisma2-private/issues/15 for @pantharshit00

Some fields in your schema contains _ at the beginning which currently is not supported.

Can you help @williamluke4 to fix his schema via Slack maybe @pantharshit00, please? It would be great to know if this indeed fixes his problems.

It does indeed fixes it, I tried on a smaller model. But doing it on those many fields is tiring. We surely need to fix this on the introspection level itself because Prisma 1 heavily uses fields with _ and I believe the schema the @williamluke4 shared is also bootstrapped by Prisma 1.

@pantharshit00 Yep that is correct, this is a prisma1 project

Ok, the real solution here then is to support fields with non-alphanumeric characters. We will work on that as soon as possible. If this does not happen, we will adapt the Introspection in a way that the @map is added automatically to the schema.

@janpio Just tested this out using<EMAIL_ADDRESS>as prisma/prisma-engine#331 has been merged. But much to my dismay there is another issue.
Steps to Reproduce

Use the prisma1 schema found here prisma/prisma2-private#15
Deploy it to a postgres db
Run prisma2 introspect

### Thoughts
In the log, it says `Table ChatRoomFromTrip not found` and indeed `ChatRoomFromTrip` is not in the database but `_ChatRoomFromTrip` is present. I would assume that the `_` has been removed at some point during the introspection?

### Log

Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Found no corresponding foreign key
Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Handling column Column { name: "A", tpe: ColumnType { raw: "varchar", family: String, arity: Required }, default: None, auto_increment: false }
Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Calculating field type for 'A'
Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Found corresponding foreign key
Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Handling column Column { name: "B", tpe: ColumnType { raw: "varchar", family: String, arity: Required }, default: None, auto_increment: false }
Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Calculating field type for 'B'
Jan 06 18:59:45.426 DEBUG Introspect{url=UrlInput { url: "postgresql://prisma:prisma@localhost:5434/prisma?schema=API%24production" }}: sql_introspection_connector::calculate_datamodel: Found corresponding foreign key
{"message":"[src/libcore/result.rs:1165:5] called Result::unwrap() on an Err value: "Table ChatRoomFromTrip not found"","backtrace":"stack backtrace:\n   0: user_facing_errors::UnknownError::new_in_panic_hook\n   1: user_facing_errors::panic_hook::set_panic_hook::{{closure}}\n   2: std::panicking::rust_panic_with_hook\n             at src/libstd/panicking.rs:468\n   3: std::panicking::continue_panic_fmt\n             at src/libstd/panicking.rs:373\n   4: rust_begin_unwind\n             at src/libstd/panicking.rs:302\n   5: core::panicking::panic_fmt\n             at src/libcore/panicking.rs:139\n   6: core::result::unwrap_failed\n             at src/libcore/result.rs:1165\n   7: sql_schema_describer::SqlSchema::table_bang\n   8: sql_introspection_connector::calculate_datamodel::calculate_model\n   9: <std::future::GenFuture as core::future::future::Future>::poll\n  10: <std::future::GenFuture as core::future::future::Future>::poll\n  11: tokio::runtime::enter::Enter::block_on\n  12: std::thread::local::LocalKey::with\n  13: std::thread::local::LocalKey::with\n  14: tokio::runtime::spawner::Spawner::enter\n  15: tokio::runtime::time::variant::with_default\n  16: std::thread::local::LocalKey::with\n  17: <introspection_engine::rpc::RpcImpl as introspection_engine::rpc::rpc_impl_Rpc::gen_server::Rpc>::introspect\n  18: <jsonrpc_core::delegates::DelegateAsyncMethod<T,F> as jsonrpc_core::calls::RpcMethod>::call\n  19: <futures::future::lazy::Lazy<F,R> as futures::future::Future>::poll\n  20: futures::future::chain::Chain<A,B,C>::poll\n  21: <futures::future::then::Then<A,B,F> as futures::future::Future>::poll\n  22: <futures::future::map::Map<A,F> as futures::future::Future>::poll\n  23: <futures::future::either::Either<A,B> as futures::future::Future>::poll\n  24: <futures::future::map::Map<A,F> as futures::future::Future>::poll\n  25: <futures::future::map_err::MapErr<A,F> as futures::future::Future>::poll\n  26: <futures::stream::and_then::AndThen<S,F,U> as futures::stream::Stream>::poll\n  27: <futures::stream::forward::Forward<T,U> as futures::future::Future>::poll\n  28: <futures::future::map::Map<A,F> as futures::future::Future>::poll\n  29: <futures::future::map_err::MapErr<A,F> as futures::future::Future>::poll\n  30: futures::task_impl::Spawn::poll_future_notify\n  31: std::panicking::try::do_call\n  32: __rust_maybe_catch_panic\n             at src/libpanic_unwind/lib.rs:78\n  33: tokio_threadpool::task::Task::run\n  34: tokio_threadpool::worker::Worker::run_task\n  35: tokio_threadpool::worker::Worker::run\n  36: tokio_reactor::with_default\n  37: tokio::runtime::threadpool::builder::Builder::build::{{closure}}\n  38: std::thread::local::LocalKey::with\n  39: std::sys_common::backtrace::__rust_begin_short_backtrace\n  40: std::panicking::try::do_call\n  41: __rust_maybe_catch_panic\n             at src/libpanic_unwind/lib.rs:78\n  42: core::ops::function::FnOnce::call_once{{vtable.shim}}\n  43: <alloc::boxed::Box as core::ops::function::FnOnce>::call_once\n             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/liballoc/boxed.rs:942\n  44: <alloc::boxed::Box as core::ops::function::FnOnce>::call_once\n             at /rustc/73528e339aae0f17a15ffa49a8ac608f50c6cf14/src/liballoc/boxed.rs:942\n      std::sys_common::thread::start_thread\n             at src/libstd/sys_common/thread.rs:13\n      std::sys::unix::thread::Thread::new::thread_start\n             at src/libstd/sys/unix/thread.rs:79\n  45: start_thread\n  46: __clone\n"}

Please create a new issue @williamluke4, as your original issue here has indeed been fixed. We will gladly look into your new problem then. Thanks.


Revert "clippy: fix build (#152211)"

This reverts commit aaff0d644f3e883dc738519c3d558dc6c6af18a1.
Reason: proper fix is now in master, see https://github.com/NixOS/nixpkgs/pull/152197

Motivation for this change
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@ofborg build clippy


Hide table of contents links

I am using the viewLarecipe gate to restrict access to certain documents, but the link on the left side table of contents still show.
Describe the solution you'd like
It would be nice to have a way to hide links for any documents a user does not have access to.
My gate set up in case it helps:
        Gate::define('viewLarecipe', function ($user, DocumentationRepository $documentation) {
            $section     = $documentation->getCurrentSectionAttribute();
            $lockedAreas = ['admin', 'dev', 'mod'];

            if (! Str::startsWith($section, $lockedAreas)) {
                return true;
            }

            $roles = Role::all();

            foreach ($lockedAreas as $lockedArea) {
                // Make sure we get the full role for validation.
                $role = $roles
                    ->filter(function ($role) use ($lockedArea) {
                        return Str::startsWith($role->name, $lockedArea);
                    })
                    ->first();

                if (Str::startsWith($section, $lockedArea) && ! auth()->user()->hasRole($role->name)) {
                    return false;
                }
            }

            return true;
        });

This feature will be available to customize in the v3.


Output hatched egg info to file

Short Description: Output hatched egg info to file
Fixes:

Write hatched egg info to file to easily see what hatched from eggs while AFK
Fixed follow_path worker to use 'with' statement when reading file in so it's auto-closed
Fixed typo

@Shoh this PR cannot be accept, because I'm moving all the logs to events (events are logged by a LoggingHandler of the system). But in the future, when PR gets merged and I add config, you will be able to redirect any given worker (or all workers) output to a file.

Got it, np


Add conditional requests and cache-control headers on '/users' (#1062)

app.User.ID is set after account.Identity.ID but 2 extra fields are returned in the Data.Attributes:

identityID : the id of the identity that was used to look-up the identity and then the user,
userID: the id of the corresponding user

Also:

splitted Identity vs User in design/account.go, which consequently
renamed some app.IdentityData to app.UserData.
added created-at and updated-at fields in the user data.
moved some app code out of the account package to avoid cyclic deps.

Fixes #1062
Signed-off-by: Xavier Coulon<EMAIL_ADDRESS>

@alexeykazakov @sbose78 this is a new attempt to add support for conditional requests on the /users and /user endpoints. However, in this PR, the ID in the JSON response is identity ID (i.e., remains unchanged to initial behavior, before starting to work on this issue), so hopefully, all requests that fetch user data on the server should still work.

Codecov Report

Merging #1147 into master will decrease coverage by 0.26%.
The diff coverage is 68.55%.

@@            Coverage Diff             @@
##           master    #1147      +/-   ##
==========================================
- Coverage   60.47%   60.21%   -0.27%
==========================================
  Files         113      113
  Lines        9883     9921      +38
==========================================
- Hits         5977     5974       -3
- Misses       3285     3324      +39
- Partials      621      623       +2

Impacted Files
Coverage Δ

main.go
0% <0%> (ø)
:arrow_up:

controller/user.go
0% <0%> (-90.91%)
:arrow_down:

login/service.go
38.21% <0%> (ø)
:arrow_up:

workitem/link/type.go
93.84% <100%> (ø)
:arrow_up:

controller/space_iterations.go
73.21% <100%> (ø)
:arrow_up:

jsonapi/jsonapi_utility.go
96.05% <100%> (+0.05%)
:arrow_up:

controller/workitem.go
80.54% <100%> (ø)
:arrow_up:

iteration/iteration.go
61.47% <100%> (ø)
:arrow_up:

controller/identity.go
87.5% <100%> (+20.83%)
:arrow_up:

controller/collaborators.go
70.76% <100%> (ø)
:arrow_up:

... and 13 more

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 49e3018...6625b1a. Read the comment docs.

Should we just always use type=identities instead?

We could for sure @alexeykazakov .
Just curious whether it would be consistent with the fact that we are calling /Users :)

we are calling users, but we return a mix a merge of User & KC Identity.. And ID is from Identity.. so... Not sure what approach is better tbh but type=identity seems to be safer.

we are calling users, but we return a mix a merge of User & KC Identity.. And ID is from Identity.. so... Not sure what approach is better tbh but type=identity seems to be safer.

Well, my feeling was that the endpoint returns a User along with his/her Identity, so I thought that it was more accurate to set the type to user. However, I'm fine with reverting the returned type to identity for now.

@sbose78 @alexeykazakov I updated my comment above after re-reading your comments and the code. Please let me know if I missed something, but my understanding here is that you were referring to the app.User vs app.Identity types. Correct ?

No worries @xcoulon :
We keep type=identities for now. Let's not change it.

@aslakknutsen @alexeykazakov please let me know if you have any concern with this issue or if it's good to be merged.

@xcoulon my comment was about "type":"users" vs "type":"identities" in User payloads. But it looks like you reverted that change some time ago. So, looks good to me.


fix(world): workaround resolve json issue

can either turn on resolveJsonModule but get weaker types or turn it off and get strong types from our generated .json.d.ts, but not both
this attempts to work around this issue by manually importing the ABI types we need when we need them 😭

this was a workaround for issues in https://github.com/latticexyz/mud/pull/3001 when extending the workspace root tsconfig, but we decided we'll just let explorer have its own tsconfig (since its never imported as a package, only used as a binary/service)


Change calculation for Bulk Data in-flight message

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
When importing more than 2000 resources the in-flight message shows a calculation of resources/millisecond.  This is a odd number when looking at the message if it takes more than 1 millisecond to import a resource.  if that is the case we should calculate milliseconds/resource import rate.
Current message:
Import in-fly rate: [8/8/file1.ndjson/DocumentReference] reportingThreshold=[2000] resources=[2040] imported in 141913 milliseconds, ImportRate: [0.014] Resources/milliseconds
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Acceptance Criteria

GIVEN [a precondition]
AND [another precondition]
WHEN [test step]
AND [test step]
THEN [verification step]
AND [verification step]

Additional context
Add any other context or screenshots about the feature request here.

I had the same thought while reviewing.  resources/second seems the most logical to me.


form 在Modal里时，对表单的input 设置[disabled]是无效的

Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-zhxsmy
Steps to reproduce
点击show dialog 后，表单的username仍然可以输入，我已经设置disabled为true
What is expected?
username无法输入
What is actually happening?
username可以输入

Environment
Info

ng-zorro-antd
7.5.1

Browser
Chrome 版本 74.0.3729.169（正式版本） （64 位）

angular文档和页面报错都已经非常非常明显了，[disabled] 是不能可 ReactiveForm 一起使用的，打开console直接就能看到报警
It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
you. We recommend using this approach to avoid 'changed after checked' errors.

Example:
form = new FormGroup({
first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
last: new FormControl('Drew', Validators.required)
});

angular文档和页面报错都已经非常非常明显了，[disabled] 是不能可 ReactiveForm 一起使用的，打开console直接就能看到报警
It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
you. We recommend using this approach to avoid 'changed after checked' errors.

Example:
form = new FormGroup({
first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
last: new FormControl('Drew', Validators.required)
});

angular文档和页面报错都已经非常非常明显了，[disabled] 是不能可 ReactiveForm 一起使用的，打开console直接就能看到报警
It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
you. We recommend using this approach to avoid 'changed after checked' errors.

Example:
form = new FormGroup({
first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
last: new FormControl('Drew', Validators.required)
});


Extreme resource usage

Describe the bug
Starting pock app seems  (starts this service) com.apple.quicklook.ThumbnailsAgent The service using cpu (and fans&battery) too much.
How to reproduce
Steps to reproduce the behavior:
1. Launching app

Expected behavior
The service I mentioned shouldn't using that much cpu. (Not sure related with app or OS Bug?)
Screenshots

Versions:

macOS version: [13.1]
Pock version:  [0.9.0-22]

The issue is the Dock widget. Reinstall Pock and don't update the Dock widget. This fixed it for me.


Segment length indicators get unweildy at scale

take a script that has large values
const sketch002 = startSketchOn('XZ')
  |> startProfileAt([977.86, 1889.8], %)
  |> line([2505.09, 461.46], %)
  |> line([-122.94, -2915.18], %)
  |> line([-1871.89, -1464.62], %)
  |> line([-524.76, 1174.83], %)
  |> lineTo([profileStartX(%), profileStartY(%)], %)
  |> close(%)

Go into sketch mode
numbers don't match with the segments very well.

Video is better
https://github.com/user-attachments/assets/3502d645-8dea-41cf-803f-76d86ae68854

I'll CC but won't assign @franknoirot

Woah gnarly!

Thinking this might be a good one for @nadr0.
Here's the PR where these were initially added
https://github.com/KittyCAD/modeling-app/pull/2935/files
@franknoirot if you have any more context or theories of what might be happening feel free to chip in.

Yes, I feel somewhat confident that it is because this code where we calculate the text and position of these length labels do not take scale or the current zoom level properly into account.