Add the ability to add a where clause for "one-to" side of "one-to-one" and "one-to-many"

Problem
I'm trying to build a tool ontop of Prisma that handles access control defined via a ruleset.
What I currently have is the ability to block certain tables from being queried as well as only returning a subset of tables that are accessible by the defined rules.
However while implementing I found that there is no where argument available for relations that are on the "one" side from a "one-to-many" relationship (or both sides with a "one-to-one" relation)
An example query that I would want to send is here:
prisma.invoiceLine.findMany({
  where: {
    OR: [
      {
        Invoice: {
          is: {
            CustomerId: {
              equals: 1,
            },
          },
        },
      },
    ],
  },
  select: {
    InvoiceId: true,
    Track: {
      where: {
        InvoiceLine: {
          some: {
            Invoice: {
              is: {
                InvoiceId: {
                  in: [
                    327,
                    98,
                  ],
                },
              },
            },
          },
        },
      },
      select: {
        Name: true,
        Album: {
          select: {
            Title: true,
          },
        },
        Composer: true,
      },
    },
    UnitPrice: true,
    Quantity: true,
  },
});

This obviously tells me (correctly) that where does not exist on Track but without having a where clause there, my only other option is to fetch every record that is required for checking the rule and check this in userspace instead of having this be dealt with in the database layer.
This becomes a problem with a large amount of data as the rules can use relations and thus making me load a lot of unnecessary data into memory to then filter out again.

Suggested solution
Add where to the "one" side of relations so it can be null depending on if the where matches or not

Alternatives
There is the alternative that I would add the where clause higher up on the invoiceLine, but I want to fetch the data for the invoiceLine but have Track be null in this case. If this was my own application I could make assumptions in the way I query but since this is aimed to be a general purpose tool I can't push that assumption to the users.
I also cannot make the Track be a optional field (if this is why I don't have a where clause) because I want the database to validate that data is correctly inserted.
A last resort solution would be to detect when I hit a "boundary" like this and get all IDs and make a subsequent Track.findMany but I'd like to not do that if possible and make a single roundtrip to the database instead for latency reasons

Additional context
The Prisma schema as well as the migrations for some test data are available here: https://github.com/firatoezcan/typegraphql-prisma-cms/tree/nexus/apps/api/prisma

Schema
generator client {
  provider = "prisma-client-js"
  // previewFeatures = ["interactiveTransactions"]
}

generator nexusPrisma {
  provider = "nexus-prisma"
}

// generator typegraphql {
//   provider = "typegraphql-prisma"
//   output   = "../node_modules/.prisma/type-graphql"
// }

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model Album {
  AlbumId  Int     @id(map: "PK_Album") @unique
  Title    String  @db.VarChar(160)
  ArtistId Int
  Artist   Artist  @relation(fields: [ArtistId], references: [ArtistId], onDelete: NoAction, onUpdate: NoAction, map: "FK_AlbumArtistId")
  Track    Track[]

  @@index([ArtistId], map: "IFK_AlbumArtistId")
}

model Artist {
  ArtistId Int     @id(map: "PK_Artist") @unique
  Name     String? @db.VarChar(120)
  Album    Album[]
}

model Customer {
  CustomerId   Int       @id(map: "PK_Customer") @unique
  FirstName    String    @db.VarChar(40)
  LastName     String    @db.VarChar(20)
  Company      String?   @db.VarChar(80)
  Address      String?   @db.VarChar(70)
  City         String?   @db.VarChar(40)
  State        String?   @db.VarChar(40)
  Country      String?   @db.VarChar(40)
  PostalCode   String?   @db.VarChar(10)
  Phone        String?   @db.VarChar(24)
  Fax          String?   @db.VarChar(24)
  Email        String    @db.VarChar(60)
  SupportRepId Int?
  Employee     Employee? @relation(fields: [SupportRepId], references: [EmployeeId], onDelete: NoAction, onUpdate: NoAction, map: "FK_CustomerSupportRepId")
  Invoice      Invoice[]

  @@index([SupportRepId], map: "IFK_CustomerSupportRepId")
}

/// Employees Table
model Employee {
  EmployeeId     Int        @id(map: "PK_Employee") @unique
  LastName       String     @db.VarChar(20)
  FirstName      String     @db.VarChar(20)
  Title          String?    @db.VarChar(30)
  ReportsTo      Int?
  BirthDate      DateTime?  @db.Timestamp(6)
  HireDate       DateTime?  @db.Timestamp(6)
  Address        String?    @db.VarChar(70)
  City           String?    @db.VarChar(40)
  State          String?    @db.VarChar(40)
  Country        String?    @db.VarChar(40)
  PostalCode     String?    @db.VarChar(10)
  Phone          String?    @db.VarChar(24)
  Fax            String?    @db.VarChar(24)
  Email          String?    @db.VarChar(60)
  Employee       Employee?  @relation("EmployeeToEmployee", fields: [ReportsTo], references: [EmployeeId], onDelete: NoAction, onUpdate: NoAction, map: "FK_EmployeeReportsTo")
  Customer       Customer[]
  other_Employee Employee[] @relation("EmployeeToEmployee")

  @@index([ReportsTo], map: "IFK_EmployeeReportsTo")
}

model Genre {
  GenreId Int     @id(map: "PK_Genre") @unique
  Name    String? @db.VarChar(120)
  Track   Track[]
}

model Invoice {
  InvoiceId         Int           @id(map: "PK_Invoice") @unique
  CustomerId        Int
  InvoiceDate       DateTime      @db.Timestamp(6)
  BillingAddress    String?       @db.VarChar(70)
  BillingCity       String?       @db.VarChar(40)
  BillingState      String?       @db.VarChar(40)
  BillingCountry    String?       @db.VarChar(40)
  BillingPostalCode String?       @db.VarChar(10)
  Total             Decimal       @db.Decimal(10, 2)
  Customer          Customer      @relation(fields: [CustomerId], references: [CustomerId], onDelete: NoAction, onUpdate: NoAction, map: "FK_InvoiceCustomerId")
  InvoiceLine       InvoiceLine[]

  @@index([CustomerId], map: "IFK_InvoiceCustomerId")
}

model InvoiceLine {
  InvoiceLineId Int     @id(map: "PK_InvoiceLine") @unique
  InvoiceId     Int
  TrackId       Int
  UnitPrice     Decimal @db.Decimal(10, 2)
  Quantity      Int
  Invoice       Invoice @relation(fields: [InvoiceId], references: [InvoiceId], onDelete: NoAction, onUpdate: NoAction, map: "FK_InvoiceLineInvoiceId")
  Track         Track   @relation(fields: [TrackId], references: [TrackId], onDelete: NoAction, onUpdate: NoAction, map: "FK_InvoiceLineTrackId")

  @@index([InvoiceId], map: "IFK_InvoiceLineInvoiceId")
  @@index([TrackId], map: "IFK_InvoiceLineTrackId")
}

model MediaType {
  MediaTypeId Int     @id(map: "PK_MediaType") @unique
  Name        String? @db.VarChar(120)
  Track       Track[]
}

model Playlist {
  PlaylistId    Int             @id(map: "PK_Playlist") @unique
  Name          String?         @db.VarChar(120)
  PlaylistTrack PlaylistTrack[]
}

model PlaylistTrack {
  PlayListTrackId String?  @unique @default(uuid())
  PlaylistId      Int
  TrackId         Int
  Playlist        Playlist @relation(fields: [PlaylistId], references: [PlaylistId], onDelete: NoAction, onUpdate: NoAction, map: "FK_PlaylistTrackPlaylistId")
  Track           Track    @relation(fields: [TrackId], references: [TrackId], onDelete: NoAction, onUpdate: NoAction, map: "FK_PlaylistTrackTrackId")

  @@id([PlaylistId, TrackId], map: "PK_PlaylistTrack")
  @@index([TrackId], map: "IFK_PlaylistTrackTrackId")
}

model Track {
  TrackId       Int             @id(map: "PK_Track") @unique
  Name          String          @db.VarChar(200)
  AlbumId       Int?
  MediaTypeId   Int
  GenreId       Int?
  Composer      String?         @db.VarChar(220)
  Milliseconds  Int
  Bytes         Int?
  UnitPrice     Decimal         @db.Decimal(10, 2)
  Album         Album?          @relation(fields: [AlbumId], references: [AlbumId], onDelete: NoAction, onUpdate: NoAction, map: "FK_TrackAlbumId")
  Genre         Genre?          @relation(fields: [GenreId], references: [GenreId], onDelete: NoAction, onUpdate: NoAction, map: "FK_TrackGenreId")
  MediaType     MediaType       @relation(fields: [MediaTypeId], references: [MediaTypeId], onDelete: NoAction, onUpdate: NoAction, map: "FK_TrackMediaTypeId")
  InvoiceLine   InvoiceLine[]
  PlaylistTrack PlaylistTrack[]

  @@index([AlbumId], map: "IFK_TrackAlbumId")
  @@index([GenreId], map: "IFK_TrackGenreId")
  @@index([MediaTypeId], map: "IFK_TrackMediaTypeId")
}

Were you every able to find an alternative way to accomplish it @firatoezcan ?  Experiencing a similar issue.  Imagine I have user profiles that the user can mark as private and I want to only include them based on that toggle:
model User {
  id        Int      @id @default(autoincrement())
  profile   Profile? @relation(fields: [profileId], references: [id])
  profileId Int?     @unique
}

model Profile {
  isPrivate Boolean @default(true)
  email     String
  location  String

  id   Int   @id @default(autoincrement())
  user User?
}

const data = await db.user.findMany({ include: { profile: { where: { isPrivate: false } } } });
^This would be the intuitive way to do this, but I don't think this is possible currently.  I 100% agree with Firat, pretty silly to have to filter out this data manually after querying, and becomes orders of magnitude more complex if theres multiple levels of include statements.

@JoeRoddy nope, I tried doing multiple client calls but the performance was not good enough for me so I switched to using Hasura

+1, also in this situation


llava_arch.py image_sizes missing. (Mistral LLava 1.6)[Usage]

Issue:
When running the following command with the 1.6 mistral model I get an image_size error. I DID manage to get it working by manually setting the image size I'm inputting inside llava_arch.py
Command:
    --model-path liuhaotian/llava-v1.6-mistral-7b \
    --image-file "image.png" --device mps

Log:
/LLaVA/llava/model/llava_arch.py", line 173, in prepare_inputs_labels_for_multimodal num_patch_width, num_patch_height = get_anyres_image_grid_shape(image_sizes[image_idx], self.config.image_grid_pinpoints, self.get_vision_tower().config.image_size) TypeError: 'NoneType' object is not subscriptable

same here

Same here, looks like the call to model.generate in cli.py is not passing the image_sizes variable. Adding the line:
imagesize=image.size
below the load_image() call, and the line:
image_sizes = [imagesize],
to the model.generate() call fixed it for me.

Same here, looks like the call to model.generate in cli.py is not passing the image_sizes variable. Adding the line: imagesize=image.size below the load_image() call, and the line: image_sizes = [imagesize], to the model.generate() call fixed it for me.
#1038

This seems to also apply to other files, such as run_llava.py, except it needs to work with one or more images. Something like this should work for run_llava.py (I have tested this with a single image but not multiple images.)
def load_images(image_files):
out = []
sizes = []
for image_file in image_files:
image = load_image(image_file)
out.append(image)
sizes.append(image.size)
return out, sizes
modify the function call:
images, imagesizes = load_images(image_files)
and add a line to the model.generate call:
image_sizes=imagesizes,

I have encountered the same error, and this solution worked for me, thank you 👍

Same here, looks like the call to model.generate in cli.py is not passing the image_sizes variable. Adding the line: imagesize=image.size below the load_image() call, and the line: image_sizes = [imagesize], to the model.generate() call fixed it for me.
#1038

This worked for me, thank you everyone! 🚀


Allow {{image.sagemaker}} to substitute for the entire image

TL;DR
Allow users to specify {{image.sagemaker}} (or others) into their container_image attribute of a task to substitute for the entire image path... instead of forcing them to write {{image.sagemaker.fqn}}:{{image.sagemaker.version}}.
Type

[ ] Bug Fix
[X] Feature
[ ] Plugin

Are all requirements met?

[X] Code completed
[X] Smoke tested
[X] Unit tests added
[X] Code documentation added
[X] Any pending items have an associated Issue

Tracking Issue
https://github.com/flyteorg/flyte/issues/734

Codecov Report

Merging #386 (fb6e3f9) into master (80835d1) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #386   +/-   ##
=======================================
  Coverage   96.00%   96.00%
=======================================
  Files           2        2
  Lines          75       75
  Branches        8        8
=======================================
  Hits           72       72
  Misses          1        1
  Partials        2        2

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 80835d1...fb6e3f9. Read the comment docs.


typo: update sveltekit.md

Lucia shouldn't be a development dependency.

There's actually no difference between dependencies and dev dependencies in SvelteKit except when using the Node adapter, in which case Lucia should be in dev dependencies so it gets bundled.


Fix line hit values of undefined.

When running coverage-viewer against a Coverlet report, I was getting back undefined line hit values. This was causing issues with calculating the line coverage percentage (coverage was always 100% when it should have been less).
The current fixture used to test transforms.js has a similar format to a recent coverlet report in my project. The current tests were not testing enough to catch the bug.
This PR fixes the undefined property and includes additional testing to verify transformed format.

Pull Request Test Coverage Report for Build 174

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.682%

Totals

Change from base Build 139:
0.0%

Covered Lines:
89

Relevant Lines:
148

💛  - Coveralls

Merged, thanks for the fix!


Pub/Sub client doesn't reconnect after a permission denied error

Is your feature request related to a problem? Please describe.
When removing the role 'PubSub Subscriber' to the service account used by the application, an expected exception PermissionDeniedException is thrown after few secondes or minutes. Then, if the role is re-added to the service account, the connection is not reopened by the client.
Describe the solution you'd like
It could be useful if the client can reconnect after a change in the IAM configuration (errors happens... :) ). I initially thought that the option keep-alive-interval-minutes: 5 could be used on permission denied error but it has no effect.
Additional context
I have a sample repro application here : https://github.com/olivierboudet/test-pubsub-gcp-issue
Steps to reproduce

Modify application.properties to set the project name, the subscription name and the encoded credential key
Start the application
Remove the role 'PubSub Subscriber' to the service account used by the application
Wait for the PermissionDeniedException exception
Add the role 'PubSub Subscriber' to the service account used by the application
Publish a message in the corresponding topic

The message is never consumed by the application. It needs to be restarted.

Per our best practices, permission denied is not a retryable error. This is not a common pattern that we expect to see, and if you anticipate encountering this in your application, we recommend doing application layer retry.


Fix the "warning" sitution

Warning 275 of 275:

  in module Deku.DOM.Attr.Type
  at /nix/store/v7w0dan0kwmfdw3zbyzbllsyk6bbgmdq-deku-0.9.9/Deku/DOM/Attr/Type.purs:1:1 - 39:35 (line 1, column 1 - line 39, column 35)

    Shadowed definitions are in scope for type Type from the following open imports:

      import Prim

    These will be ignored and the local declaration will be used.

  See https://github.com/purescript/documentation/blob/master/errors/ScopeShadowing.md for more information,
  or to contribute content related to this warning.

I would be interested in seeing 275 less warnings in my compile output. Is it possible to use hiding or something?

What version of the compiler are you using?

Not an issue anymore. Unsure what happened.


Re enable tools on the API documentation

This should close #148 .
I also added NEO and the iterator for roi that were not in the API before.
This works locally for me but somehow is failing here. Trying different things.

Would be nice if there was some sort of workflow that could check for empty sections of text in the docs. Do you think that could be possible?

Would be nice if there was some sort of workflow that could check for empty sections of text in the docs. Do you think that could be possible?

Yes, I will think about it.

This seems to be working now.
@CodyCBakerPhD, is there a way to not trigger the full tests when the requirement.rst is modified?
Any pattern we can block here?
https://github.com/catalystneuro/neuroconv/blob/main/.github/workflows/assess-file-changes.yml#L36-L39

@CodyCBakerPhD, is there a way to not trigger the full tests when the requirement.rdt is modified?
Any pattern we can block here?
https://github.com/catalystneuro/neuroconv/blob/main/.github/workflows/assess-file-changes.yml#L36-L39

Increased the specificity. Should be good now.

LGTM, thanks for fixing.
Minor note: I don't know why, but https://neuroconv--149.org.readthedocs.build/en/149/api/tools.roiextractors.html#neuroconv.tools.roiextractors.roiextractors._imaging_frames_to_hdmf_iterator has text overflowing for parameter descriptions whereas the other ones on that page do not...?

LGTM, thanks for fixing.
Minor note: I don't know why, but https://neuroconv--149.org.readthedocs.build/en/149/api/tools.roiextractors.html#neuroconv.tools.roiextractors.roiextractors._imaging_frames_to_hdmf_iterator has text overflowing for parameter descriptions whereas the other ones on that page do not...?

Yeah, I don't know, something about the way we write our docstrings I think. But I guess this will have to wait to the next dockaton x D


Unit test freezing Diffstar behavior to published version

This PR adds unit testing enforcing that the behavior of Diffstar does not change from the published version of the code. The script scripts/generate_unit_testing_data.py calculates the behavior of Diffstar when evaluated on the default parameters, and writes the results to ASCII data that is stored in a new directory, diffstar/tests/testing_data. The new unit-testing module, diffstar/tests/test_diffstar_is_frozen.py, repeats these same calculations, and then compares the results to the results stored in the ASCII data. This should help us ensure that the core behavior of the code is stable as the code evolves.
This PR also brings in a github workflow for CI so that our unit tests run automatically with each PR.
For reference, the behavior of Diffstar when evaluated on the default behavior looks like the plot below.

Hi Andrew, thanks a lot for writing this tests!!!
Something I've noticed is that you assume that the default parameters are unbounded parameters. I know the current naming across the code is inconsistent and it's hard to know when parameters should be assumed to be bound or unbound. However, in this case the default parameters are assumed to be bounded parameters by the code, for example when called in diffstar/fit_smah_helpers.py. So you shouldn't need to bound them here:
from ..stars import DEFAULT_SFR_PARAMS as DEFAULT_MS_U_PARAM_DICT
from ..quenching import DEFAULT_Q_PARAMS as DEFAULT_Q_U_PARAM_DICT

DEFAULT_MS_PARAMS = jnp.array(
    _get_bounded_sfr_params(*tuple(DEFAULT_MS_U_PARAM_DICT.values()))
)
DEFAULT_Q_PARAMS = jnp.array(
    _get_bounded_q_params(*tuple(DEFAULT_Q_U_PARAM_DICT.values()))
)

Perhaps after we get this freeze tests we can create an issue to consistently rename parameters or parameter arrays with a u_ at the beginning when they are assumed to be unbounded. This is used some times, but not everywhere.

Ohh, wow, that is a very important misunderstanding on my part. Geez. Ok, this freeze test should be fixed before merging then.

Perhaps after we get this freeze tests we can create an issue to consistently rename parameters or parameter arrays with a u_ at the beginning when they are assumed to be unbounded.

Yes, definitely. I don't want to make a single change to the code until these freeze tests are confidently in place. But once they are in place, then we definitely need to improve the clarity of the code regarding which functions accept which versions of the parameters.

Uploading new version of the default frozen SFH and MAH. I think this is ready for merging


Background colors from bitbar plugins do not work

v2.1.7-beta
Repro: https://xbarapp.com/docs/plugins/Dev/Tutorial/ansi.sh.html
renders as

but it should render as

another repro is at https://github.com/ahmetb/dotfiles/blob/master/bitbar-plugins/yahoo_stock_ticker.1m.py renders as

whereas bitbar renders this as

Any love for this issue? 😇

Thanks for the ping! Is there a one liner plugin that highlights this bug? Thanks

If you need a repro: https://github.com/ahmetb/dotfiles/blob/master/bitbar-plugins/yahoo_stock_ticker.1m.py

Thanks. This'll be the weekend now. It looks like a parse error so I'll need to create a test case out of this for https://github.com/leaanthony/go-ansi-parser

Partial fix:

@ahmetb - after more looking at this, it seems bitbar didn't render it correctly anyway. [40m should be black, not grey. I'm also reading that [1m (bold) should be interpreted as "high intensity" so it would make the colours brighter. Running this script in a terminal seems to set it to intense colours by default, which is weird.
I've fixed a small parse error which cleared it all up:

I believe, based on what I'm reading in the standards, this is the correct output for those codes. If you disagree and have more insights, please let me know. Cheers.

Should also mention that the bitbar rendering of the yahoo finance plugin in this thread is also a bit off. The screenshot on the plugin page looks like there are no background colours:
https://xbarapp.com/docs/plugins/Finance/yahoo_stock_ticker.10m.py.html


napari surfaces do not support non-triangular faces

🚀 Feature
Support for non-triangular faces in napari surface meshes (eg: square cell faces)
Motivation
Ideally, it'd be good if users could drag and drop any surface mesh created by a third party program into napari. Currently, only meshes with triangular faces are supported.
Pitch
I think napari should adopt an internal surface data structure similar to the meshio mesh data structure.
This doesn't necessarily mean including meshio as a dependency, we could use dictionaries and numpy arrays to handle it.
Vispy supports meshes with quad faces. At least, this example did not make an error when I tried it:
import numpy as np
from vispy.visuals import MeshVisual

# A rectangle made out of two triangles.
vertices = np.array([(0, 0, 0), (1, 0, 1), (1, 1, 1), (0, 1, 0)])
faces = np.array([(0, 1, 2), (0, 2, 3)])
mesh = MeshVisual(vertices=vertices, faces=faces)

# A rectangle made out of one quad.
vertices = np.array([(0, 0, 0), (1, 0, 1), (1, 1, 1), (0, 1, 0)])
faces = np.array([(0, 1, 2, 3)])
mesh = MeshVisual(vertices=vertices, faces=faces)

I'm unsure if Vispy supports meshes with a combination of both triangle and quad faces in the same mesh (probably not?). But that might not be a very common format, I don't know.
Alternatives
I haven't thought much about alternatives, I wanted to open a discussion first.
One obvious alternative is to leave it unsupported, but that seems like a pity to do, especially when it seems to be a limitation of napari, not Vispy.
Additional context
I've been working more recently with surface mesh data. So, one of the things I was doing was writing a plugin to support reading/writing these formats. That's how I'm finding out about all these funny edge cases.

plugin: napari-meshio
triangular mesh example data: TurboSquid model page "Absinthe Glass"; google drive link
quad mesh example data: TurboSquid model page "Quad sphere"; google drive link

I should add, I don't personally need this feature right now. But it seems like it exists more because of an oversight, rather than a considered decision not to support these cases, so I think we should have the discussion.

Thanks @GenevieveBuckley! If vispy supports it then it should be pretty easy for us to do the same, I think...!

You're right, we run into problems when vispy actually tries to draw a quad mesh.
I took the vispy mesh_normals.py example and confirmed that it runs. Then I made a copy of that script, called the copy mesh_normals_quad.py, and changed the line that loads the data to:
mesh_file = "path/to/only_quad_sphere.obj"

Then I tried to run the example again with our new data, and there is an error when the mesh is drawn.

Error message:
python mesh_normals_quad.py
WARNING: Notice reading .OBJ: material properties are ignored.
WARNING: Error drawing visual <Mesh at 0x116d0b8e0>
WARNING: Traceback (most recent call last):
  File "/Users/genevieb/Documents/temp/vispy_examples/mesh_normals_quad.py", line 50, in <module>
    canvas.show()
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/app/canvas.py", line 435, in show
    self._backend._vispy_set_visible(visible)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/app/backends/_qt.py", line 471, in _vispy_set_visible
    self.showNormal()
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/app/backends/_qt.py", line 567, in event
    out = super(QtBaseCanvasBackend, self).event(ev)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/app/backends/_qt.py", line 567, in event
    out = super(QtBaseCanvasBackend, self).event(ev)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/app/backends/_qt.py", line 903, in paintGL
    self._vispy_canvas.events.draw(region=None)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/util/event.py", line 453, in __call__
    self._invoke_callback(cb, event)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/util/event.py", line 471, in _invoke_callback
    _handle_exception(self.ignore_callback_errors,
  << caught exception here: >>
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/util/event.py", line 469, in _invoke_callback
    cb(event)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/scene/canvas.py", line 218, in on_draw
    self._draw_scene()
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/scene/canvas.py", line 277, in _draw_scene
    self.draw_visual(self.scene)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/scene/canvas.py", line 315, in draw_visual
    node.draw()
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/scene/visuals.py", line 103, in draw
    self._visual_superclass.draw(self)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/visuals/visual.py", line 451, in draw
    self._program.draw(self._vshare.draw_mode,
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/visuals/shaders/program.py", line 102, in draw
    Program.draw(self, *args, **kwargs)
  File "/Users/genevieb/mambaforge/envs/napari-dev/lib/python3.10/site-packages/vispy/gloo/program.py", line 505, in draw
    raise RuntimeError('All attributes must have the same size, got:\n{msg}')
RuntimeError: All attributes must have the same size, got:
{msg}
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0x1331eebc0>> for DrawEvent
Key bindings:
 f : toggle face normals
 v : toggle vertex normals
WARNING: Error drawing visual <Mesh at 0x116d0b8e0>
ERROR: Invoking <bound method SceneCanvas.on_draw of <SceneCanvas (PyQt5) at 0x1331eebc0>> repeat 2
WARNING: Error drawing visual <Mesh at 0x116d0b8e0>

Summary:

Vispy does not support quad meshes.
Vispy definitely does not support mixed shape meshes, containing both quads and triangles.

Here is an issue also discussing problems displaying quad meshes with Vispy:  https://github.com/vispy/vispy/issues/1938


Create GitHub Remote Issue Provider integration

Implement a GitHub provider as described by model in https://github.com/almighty/almighty-core/issues/24

Tried things out here: https://github.com/Ritsyy/ALM-issues/blob/master/github-alm.go

Duplicate https://github.com/almighty/almighty-core/issues/132


Filtering out missing values with @filter

Hello,
Thanks for this wonderful package!
I was wondering if there is a way to filter out the missing values in a specific column using @filter
I tried
@filter(df, !ismissing(Column_name)) but it fails with the following error
ArgumentError: function passed to subset/subset! returned value of type Tuple{BitVector, BitVector} while it must return an AbstractVector` when subsetting a data frame
I also tried
@filter(df, Column_name!=missing) but is fails because it interprets the word 'missing' as a column name (same issue as #38 )
Not urgent as I can use dropmissing in the chain, but it would be cleaner to have all filters together in @filter.
Thanks a lot

The code you provided should work, assuming that Column_name is the actual name of the column.
For example, this works for me. Can you confirm if this works on your end? Or provide an example that is giving you an error?
Thanks!
df = DataFrame(a = [1,2,3,4,missing])
@filter(df, !ismissing(a))

4×1 DataFrame
 Row │ a
     │ Int64?
─────┼────────
   1 │      1
   2 │      2
   3 │      3
   4 │      4


File open dialog is not modal

When adding a new file to the project files, the select file dialog is not "on top"/modal, and can go behind the Scrowl window and get lost.

closed by pull #170

The project Save dialog is not modal. ALL system dialogs should be modal.


New version: ProjectJupyter.JupyterLab version 4.1.5-1

Pull request has been created with WinGet Releaser v2 :rocket:
Microsoft Reviewers: Open in CodeFlow

@microsoft-github-policy-service agree company="Project Jupyter"


Operator: Repackage Installation to allow choice of technical implementations

Description
The current Canvas installation is a helm-of-helm charts that installs a default set of operators. The Canvas Helm chart references a dependency of separate helm charts for each operator.
The Kong and APISIX operators can be installed over-the-top to add an API Gateway (and reconfigure the Istio service Mesh).
This issue is to make a single Canvas install a declarative process with choice of technology implementation. The canvas helm-of-helm values file should contain a list of possible operator for each class of operator. Only one choice for each operator should be enabled. A helm pre-install hook could check that a values file is valid before attempting an install.
The values file would look something like:
API-Management:
  apiOperatorIstio:
    enabled: true
  apiOperatorKong:
    enabled: false
  apiOperatorApisix:
    enabled: false
  apiOperatorApig:
    enabled: false
Identity-Config:
  identityConfigKeycloak:
    enabled: true
  identityConfigEntraID:
    enabled: false

@RJ-acc - At the moment we have an entrypoint.sh file for the component operator that runs either the apiOperatorIstiowithKong.py or apiOperatorIstiowithApisix.py or apiOperatorIstio.py file as part of component operator. I propose that we split this functionality from the API Operator and package the apiOperatorIstiowithKong.py file with the Kong operator, the apiOperatorIstiowithApisix.py with the APISIX operator and create a corresponding Istio operator with the apiOperatorIstio.py file.
This would result in the installation requiring the Component operator and then one of the Kong/APISIX/Istio operators (i.e. these become peers of each other).
What do you think?

@LesterThomas I completely agree with you for this. But we need to sort Kopf Operator Priority issue if we want to run them in this way. In first version of API gateway operators (Kong and Apisix), they were running in separate PODs, but issues were observed.

@LesterThomas I completely agree with you for this. But we need to sort Kopf Operator Priority issue if we want to run them in this way. In first version of API gateway operators (Kong and Apisix), they were running in separate PODs, but issues were observed.

I have done some experimentation with Kopf and have a workaround for the issue. The issue was that Kopf caused repeated updates to a Kubernetes resource if two different operators in two different pods had handlers for the same resource (it works fine if you package those two operators into the same image).
I moved the ‘updateAPIReady’ and ‘updateAPIStatus’ handlers from the component operator to the api operator. These two handlers were triggered by the status of the ExposedAPI resource (they then patch the parent component status). Kopf has issues with the component operator being triggered by updates to the API resource - it works fine if these updates are packaged with the api operator.
By moving these handlers, I was able to package the component operator and api operator into two separate containers images running in two pods.


An option to exclude the definition(s) using command finder

Is there a plan to add an option includeDeclaration to finder ?  see in file finder/init.lua is setted to true.

only set to true when no definition method in finder.

only set to true when no definition method in finder.

Update to latest commit, an error occurred when execute command Lspsaga finder, you may have a try local.

emm that's a typo.

The typo is not fixed, tbl_contains in finder/init.lua line 507


How to add new font for local testing

Hi.
I would like to know how to apply the new font, i.e. in file type ".ttf", to local testing (npm run serve)?
How should I config it?
Thanks.

Hi,
Sorry for the late answer:
From a tikui project, the structure use standard SCSS so you can use css fonts.
You just have to put your font and the css in a folder inside the source with a valid link to the font (for example is you put a relative link and you include your scss file from another part of the project, the link will be relative to the inclusion and may not work).
Then you can try to launch it with npm run serve
But in tikui.org, the style is inside the tikuidoc-tikui module, so you have to check how the documentation work : To test it locally, you have to use npm link.
Don't hesitate to answer this message if it's not clear, because tikui.org is the website based on the Tikui framework but with the style from an external module (it is the way for me to not have a cyclic dependency for the style).


Generic types in attributes fix

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Visual Bayesian Personalized Ranking

I am proposing a new feature.
We can extend the BPR module according to this paper, this includes features about the items itself. It is generic in the sense that the developer, along with the interactions, also gives the system some sort of embeddings about the items and the system then tries to learn the latent factors.

@abkds Take a look at https://github.com/maciejkula/spotlight/issues/144 where Maciej has a basic implementation of item & user features in FM. It's not 100% plug and play but part of the fun is figuring how everything works. 👍

Cool that helps, actually I kind of implemented vBPR for one of my own projects, so I was thinking of bringing it here, but if it's already here, I will check it out. Thanks 💯


DEPS.xwalk: Roll chromium-crosswalk (1072537 -> 1270fb9).

1270fb9 Merge pull request #310 from huningxin/vcd_rs_win_m48
65e5377 [Windows] M48 fixup for the Support RealSense Cameras patch

@rakuco , PTAL! Thanks!

thanks, lgtm. I was going to include this in #3499, but landing it separately also works.

Great. Thanks!


Can't find dotnet-hostfxr.msi to update/uninstall .NET Core 3.1.417

Description
My Windows Update has been failing to install a security patch for my .NET Core SDK 3.1.417 for more than 3 months. I've tried to uninstall this SDK manually from Windows Apps and Features but when I try to do so, it prompts me with this:

When I navigated to that folder I saw that there was nothing in it. I tried to google the ways to either download this missing file dotnet-hostfxr-3.1.23-win-x64.msi or install a new version of .NET Core, but I succeeded in neither.
I've also tried the .NET Uninstall Tool (dotnet-core-uninstall) but the same exact error occurs
Configuration
OS: Windows 11 21H2 (build 22000.1455)
.NET version: .NET Core 3.1.417
Other information
I know there's an issue #7093 which recommends uninstalling the .NET Core by hand, but as you can understand that doesn't work.
What I want
I want to either uninstall this outdated .NET SDK or fix it somehow so that Windows Update doesn't fail.
If you have any questions I can provide as many details as you want.

@bub1ick can you collect installation logs using https://aka.ms/vscollect tool? Please run the Collect tool from administrative command prompt. It will create a log archive (%temp%\vslogs.zip), that can be shared on OneDrive or Google Drive.
/cc @NikolaMilosavljevic as owner.

Logs would still be valuable.
@bub1ick can you collect installation logs using https://aka.ms/vscollect tool? Please run the Collect tool from administrative command prompt. It will create a log archive (%temp%\vslogs.zip), that can be shared on OneDrive or Google Drive.
In the meantime I will find the alternate way of cleaning the old installation.

@bub1ick here are the steps to repair your .NET SDK installation so your Windows update can work. You will also be able to uninstall this product successfully.

Download .NET SDK version 3.1.417: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-3.1.417-windows-x64-installer
Run the downloaded installer and select Repair option.
Product can now be successfully removed from the system, either using Settings app (Apps -> Installed Apps), or using Control Panel (Uninstall a program).

@NikolaMilosavljevic, I'll try to use the Repair option and if it doesn't work, I'll give you some logs

@NikolaMilosavljevic , OK, so it seems that it actually fixed my problem, so the issue is closed. Thanks for your help a lot!


[QUESTION] Japanese character error when export pdf

Please prefix your issue with one of the following: [BUG] [PROPOSAL] [QUESTION].
Package version, Laravel version
"maatwebsite/excel": "~2.1.0",
"laravel/framework": "5.2.*",
"mpdf/mpdf": "~5.7.3"
Expected behaviour
I have invoice contain japanese character, when export to pdf with mPDF , all japanese character show are [][][] . Please help me show japanese character in pdf, many thanks !

i have same problem also. pleas help


Pass context (transaction) to loadRelated?

The current implementation calls query() with no context argument. Is there a way to execute loadRelated/$loadRelated within a transaction?

There is no easy way. You can use bindTransaction:
const person = await Person
  .bindTransaction(trx)
  .query()
  .findOne({name: 'Jennifer'});

// `person` is now bound to the transaction and all queries
// started through it will be executed in the transaction.
await person.$loadRelated('[pets, movies]');

I'll add the transaction argument.

Got it. Thanks for your help!

You rock, thanks!


How to use

Do you have any specific questions? Basic usage is covered in the readme. You'll need to sign up for a free Keygen account, before being able to start using the Go SDK.


revert version

I made this change in order to allow a PR with interdependent changes to both the AML and AI SDK to pass CI. Undo-ing it now that I've learned that this was (probably) not needed.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-ml


Log combined stderr and stdout

On cmd.CombinedOutput returning an error, only the return code
was being logged/returned. Include the comboned stderr, stdout as well
to help understand what went wrong.
Signed-off-by: Archana Shinde<EMAIL_ADDRESS>

This change is

test-me-please

Build failed due to issues with GitHub Jenkins plugin: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/9866/execution/node/7/log/

test-me-please

cc @mcastelino


Add metals (scala lsp)

I'm not very sure if that's all it needs or not, I'm new to this, if there's anything left that needs to be added please inform me.

Oh I see. What about scalafmt or scalastyle?

Oh I see. What about scalafmt or scalastyle?

Scalastyle seems to provide standalone jars at https://repo1.maven.org/maven2/org/scalastyle/scalastyle_2.12/. Scalafmt seems to be the same as metals (also, it seems like metals uses scalafmt for LSP-based formatting, so it might be slightly redundant)

For downloading files from "proprietary" hosts (such as the scalafmt jars location), the generic pkg type should be used. See for example how jdtls does it

Ok, thanks, may I make another PR for adding scalastyle or shall I remove the the metals and add it in the PR?

I think it'd be a good idea to create a new branch and PR for that, makes it easier for future travelers to search and find information regarding metals.


let me ask you a question.

How many fps can coral dev board run?
I need realtime pose report but raspi is lower performance than my expected.
Thank you.

It depends a lot on the resolution you want to use. You can get ~20-25 FPS at 720p on a RPI4+Einstein and on the devboard. More for lower resolutions.
Often however the bottle neck is not the TPU but just moving the image buffers around. High FPS at high res requires using the GPU as well for processing.


Update WorkloadEndpoint with labels

Start a Goroutine from CreateEndpoint to update WorkloadEndpoint.
Implementation for issue https://github.com/projectcalico/libnetwork-plugin/issues/102

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

One possible suggestion: should we add a label that indicates that we haven't found the real labels yet?  This might be helpful to people.

@matthewdupre I could do that, but chances people will see this 'in progress' label is very slim. In my development testing I've seen <1 second times as the norm. Thats after starting the goroutine and updating the WEP. And since Docker makes Join and NetworkInfo calls parallel to the goroutine doing its things, I am guesstimating the WEP will be updated <0.5 second after container start.

Until the labels are synced, the containers will only be able to talk to other containers on the same network. Although @matthewdupre 's suggestion does sound potentially useful but I don't think it need to be added for this PR to be merged.

Also - before I can merge this you'll need to add some tests - see https://github.com/projectcalico/libnetwork-plugin/blob/master/libnetwork_test.go

@tomdee @matthewdupre I am done with fixing your feedback and added the switches. Please re-review. Thanks!

@rtoma this is looking really good, thanks for all the markups. I have a few final pieces of feedback then this should be good to merge:

Can you invert the meaning of the two environment variables you added, i.e. remove the "DONT" part.

CALICO_DONT_CREATE_PROFILES becomes CALICO_CREATE_PROFILES. Profiles should be created unless the env var contains the string "false" (case insensitive)
CALICO_DONT_LABEL_WEPS should just become CALICO_LABEL_ENDPOINTS. Workloads endpoints should NOT be labeled unless the env contains the string "true" (case insensitive). i.e. this behavior should be opt-in.

Can you squash all your commits into 1, then I can give it a final check and hit merge.

I think the CALICO_DONT_LABEL_WEPS names (etc) should include DOCKER somewhere: otherwise the option could be confusing to (say) Kubernetes users.

Fair point. I was wondering if maybe the env vars should get a more specific prefix, e.g. CALICO_LIBNETWORK_ which I think would solve your concern

@tomdee Sure, I'll implement the opt-out for profiles and opt-in for labelling.
This change makes it hard to test, because it requires the plugin started with the new env keys. Can you suggest a solution for this?

Hmmm, good point. Maybe moving the plugin startup into the test code might work allowing it to be changed?

Sounds like a plan, but I don't feel comfortable making this change. What about we split the work? If you can migrate the 'run-plugin' Makefile task to the GO code. Then I will add the tests for the switches.

OK, sounds fair :smile: I'm not sure when I can get to it though

@tomdee can you please merge?

I've added a PR - #124 which adds support for running tests with different environment variables. I'm going to try to get it reviewed and merged today, so would you be able to add a test using it?

@tomdee tests have been added - thanks for your patience and support. Let me know if you want anything changed before merge.


Added a new plate type

Closes #
Changes proposed in this pull request:

...

Verified that the new plate type is displayed locally after a submission and batch is created


Install Models broken: models_v5 no longer works as search index

From a user perspective, the spinner just spins when you open Install Models. Looking at the browser console and also Network->Response, it appears the index "models_v5" is no longer valid. This is the error in Network->Response in Dev Tools:
{
"message": "Inside .queries[0]: Index models_v5 not found.",
"code": "index_not_found",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#index_not_found"
}

Hi please upgrade to latest version and it will be fixed

From: rconstantine @.>
Sent: Sunday, March 31, 2024 5:25:35 AM
To: 11cafe/comfyui-workspace-manager @.>
Cc: Subscribed @.***>
Subject: [11cafe/comfyui-workspace-manager] Install Models broken: models_v5 no longer works as search index (Issue #329)
From a user perspective, the spinner just spins when you open Install Models. Looking at the browser console and also Network->Response, it appears the index "models_v5" is no longer valid. This is the error in Network->Response in Dev Tools:
{
"message": "Inside .queries[0]: Index models_v5 not found.",
"code": "index_not_found",
"type": "invalid_request",
"link": "https://docs.meilisearch.com/errors#index_not_found"
}
—
Reply to this email directly, view it on GitHubhttps://github.com/11cafe/comfyui-workspace-manager/issues/329, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEMEEOP6UJ5UBFYXP5RZERDY24UU7AVCNFSM6AAAAABFP25F7WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYTMNRWHE4DCOA.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

Sweet. That did the trick. I have just a few models that aren't available on Civitai. Any chance we could have an option to point those particular ones to a URL that we enter? If you think that is possible, I can open a feature request. If not, that's OK. Great job on this module. Many thanks.

Sweet. That did the trick. I have just a few models that aren't available on Civitai. Any chance we could have an option to point those particular ones to a URL that we enter? If you think that is possible, I can open a feature request. If not, that's OK. Great job on this module. Many thanks.

It's possible but which website would that be from? I'm not sure if I can get thumbnail image from any website you enter. If we can't get the thumbnail image from the url, then do you see it's useful to set the customize url?

The site is Tensor.art. If you go to the models section, you can see that some are marked “exclusive”.  They do have thumbnails, but whether there is an api for grabbing them or you’d have to scrape them, I don’t know. I also don’t know what they use for unique identification of each model.
It’s not a big deal, really. I was just curious since the browser console had so many errors attempting to retrieve them. As a developer myself, I just prefer to have no errors. If the civitai API has a way to ask about the existence of a model before attempting to download data about it, then that would work too.
Ryan Constantine
On Sunday, March 31, 2024, 8:42 AM, Weixuan Fu @.***> wrote:
Sweet. That did the trick. I have just a few models that aren't available on Civitai. Any chance we could have an option to point those particular ones to a URL that we enter? If you think that is possible, I can open a feature request. If not, that's OK. Great job on this module. Many thanks.
It's possible but which website would that be from? I'm not sure if I can get thumbnail image from any website you enter. If we can't get the thumbnail image from the url, then do you see it's useful to set the customize url?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

. I was just curious since the browser console had so many errors attempting to retrieve them. As a developer myself, I just prefer to have no errors.
I also found that annoying :( I prob need to cache the response result and don't request again for the ones that non existing in civitai...


Set blobhash(i) within test.

Add a cheatcode for setting the blobhash within a test so that it can be tested.

You can use blobhashes: https://github.com/foundry-rs/forge-std/blob/0e7097750918380d84dd3cfdef595bee74dabb70/src/Vm.sol#L1770-L1773


Tutorial: reduce clone size with extra Git flags

To cut the amount of network data transfer for the tutorial's clone of the Wallaroo source repo, perhaps we should add some flags?
git clone --depth 1 -b 0.1.0-rc1 https://github.com/WallarooLabs/wallaroo

... where the branch name for the -b flag would vary based on the release version's tag.
NOTE: The chapters on MacOS, Linux, and Windows would all need this small adjustment.

Reopened on @SeanTAllen's recommendation from #761.


from resizeimage import resizeimage

I con't find the model resizeimage .

It's an external dependency to python-resize-image listed in requirements.txt.
All dependencies get installed when you do pip install -r requirements.txt.


Reload templates without restarting

Cluster broccoli could watch for changes in template directory (inotify?) or provide some HTTP API endpoint to request template refresh.

Thanks for creating that issue @mastaofdisasta! I think a good first step is to support template reloading through a signal in case people are deploying the Broccoli templates through the template stanza from Nomad. What do you think?
We could use SIGUSR1 to reload the templates?
Providing an HTTP endpoint to reload is also possible but we would have to add some authorization around that. I don't see a huge benefit over signals, esp. as reloading only makes sense after changes to the files have been made. Instead, we should allow changing templates through the API / Web UI so that administrators can create new templates during runtime without access to the file system.
PS: Sorry for the late response I was not in the country.

I suggest tearing the TemplateService apart and move template loading into the following structure of "layered template sources":

trait TemplatesSource {
  def loadTemplates(): Seq[Template]
}

class DirectoryTemplatesSources(directory: String) extends TemplatesSource {
  def loadTemplates(): Seq[Template] = ???
}

@Singleton
class CachedTemplatesSource(source: TemplatesSource) extends TemplatesSource {
  @volatile private var templatesCache: Option[Seq[Template]] = ???

  override def loadTemplates(): Seq[Template] =
    templatesCache match {
      case Some(templates) => templates
      case None => {
        refresh()
        templatesCache.get
      }
    }

  def refresh(): Unit = templatesCache = Some(source.loadTemplates())
}

class CacheRefresher(source: CachedTemplatesSource) extends TemplatesSource {

  def wheneverUSR1(): Unit = {
    source.refresh()
  }

  override def loadTemplates(): Seq[Template] = source.loadTemplates()
}

Each part represents a single concern now:

Loading templates from disk
Maintaining an in-memory cache of templates
Refreshing the cache on SIGURS1

The TemplateService would get a TemplatesSource injected via DI; a new "TemplatesModule" would configure the appropriate TemplatesSource for injection. /cc @Gerrrr

Is everything done here @Gerrrr ?

Not yet.
I still have to mention in the release notes for 0.7.0 that the default paths for instance and template folders changed from /instance and /templates to /cluster-broccoli-dist/instance and /cluster-broccoli-dist/templates respectively.

I see a possible conflict with this one? https://github.com/FRosner/cluster-broccoli/pull/281

@FRosner @Gerrrr I thought these changes happened in #265?
In this case I'd merge #265 first and then update #281 afterwards before merging it.

These changes happened in #255.

Ah, I wasn't aware.  I'll update #281 accordingly :)

@Gerrrr It seems though that these changes only made it into docker/test/Dockerfile, but not docker/prod/Dockerfile?

@lunaryorn yes you are right. It should be the same in both files. Do you want me to include the fix in #265?

@Gerrrr No, I've redone the production image build in #281 which fixes this as well.


Slow UI and busy GPU thread with Electron 6 on Linux (with Intel CPU and no GPU?)

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
Atom is slow on certain machines/OSes with Electron 6. (Workaround: Run atom with --disable-gpu).
Steps to Reproduce

Have certain hardware? (I suspect this is limited to machines with no dedicated GPU)
Run Linux
Try to run Atom with Electron 6 (See #20764)

Expected behavior:
Atom should be reasonably responsive. CPU cores should all be at less than 100% usage when not doing anything in the app.
Actual behavior:
GPU process is very busy, maxing out one of my CPU cores most of the time. UI is not very responsive, taking multiple seconds to do things like draw the close button on tabs.
Reproduces how often:

100% of the time on my machine running Ubuntu.
0% of the time on Windows.
(0% of the time on macOS?)

Versions
$ atom-dev --version
Atom    : 1.50.0-dev-39d2bd480
Electron: 6.1.12
Chrome  : 76.0.3809.146
Node    : 12.4.0

$ apm-dev --version
apm  2.5.0
npm  6.14.5
node 10.20.1 x64
atom 1.50.0-dev-39d2bd480
python
git 2.25.1

Additional Information
See this comment: https://github.com/atom/atom/pull/20764#discussion_r439071831
A workaround if you get this issue is to run Atom from the command-line or terminal with the --disable-gpu flag.

Might be helpful https://github.com/electron/electron/issues/13303

This happens with electron-quick-start with electron 6.1.12. That means it's not strictly an Atom problem.

Electron 6 hasn't been supported for some time, so if this requires a change in upstream Electron, they are not likely to make such a change. It would have to be fixed in Atom, if at all.

I have no idea then how VS Code doesn't have this issue on Electron 6...
If I were to guess, I'm aware there are some safelists/blocklists of different GPUs. Maybe Electron 6 enables my almost-zero-performance "integrated graphics" (which I think is actually chipset graphics from the motherboard.) And further down the rabbit hole of "guessing," perhaps VS Code managed to get my hardware onto the blocklist, which it definitely should be on.

Overall, I personally think this is likely not worth fixing, instead focusing on updating to Electron 7+ as soon as possible would be a better use of resources. Unless the fix for this turns out to be really easy.

Thanks for the follow up @DeeDeeG, I think it makes sense to move on with the upgrade, electron upgrade to v7 will be one of our top priorities and in case we were able to figure out a straightforward way to blacklist your hardware and similar ones, a PR would definitely be welcome.
I will leave this open to keep it on the radar, until there is PR to blacklist similar hardware or electron 7 is out

I am not sure why, but I have some tentative good news for this issue.
The build artifact from #21095 doesn't have a slow GPU thread on my computer!
(Version: Atom-dev-51@https://github.com/atom/atom/pull/21095/commits/852be73127fc6f1e7f7da030e4af0d23e62e7b53)
Assets available here: https://github.visualstudio.com/Atom/_build/results?buildId=76620&view=artifacts&type=publishedArtifacts
(I wonder if this is fixed for the main Electron 6 PR as well. I note that the<EMAIL_ADDRESS>and<EMAIL_ADDRESS>bumps are included at that point in the commit history. Maybe one of those fixed this problem?)

@lkashef Just wanted to let you know I don't have the "slow GPU thread" problem anymore with Electron 6!
(More technically speaking: This is not reproducible for me with the artifacts from the main Electron 6 PR! (#21079).)

No idea if it's related, but I see suspiciously high GPU usage when I have a cursor blinking in a "text input" box.
I'm seeing this happen with the text input boxes for the "Find and Replace" feature (find in buffer OR find in project), and the text input boxes in the various settings screens (e.g. any text input box to change a setting under "Settings > Core" or the filter box for "Settings > Packages", or the search box for "Settings > Install".
These things aren't slow for me on Atom 1.49.0 stable.

Sorry for issue necromancy, but the following comment at https://github.com/electron/electron/issues/21415#issuecomment-760118781 helped me:

I had the electron freezing issue on my laptop with intel graphics using arch linux. I could use electron apps only with the --disable-gpu flag.
Switching from the xf86-video-intel driver to the kernel's modesetting driver solved the issue. Electron apps now run stable on my machine, even without the --disbale-gpu flag.
I have read that "xf86-video-intel's development has stalled for a long time, and many intel developers are instead actively improving the modesetting driver"...
I think ditching the xf86-video-intel driver was the right solution for me.

In my case (Ubuntu 20.04), I just ran sudo apt-get remove xserver-xorg-video-intel and rebooted, and the issue was resolved.


showSlide() method does not work

Hello :)

showSlide() should only works with navigation enabled. If navigation disabled, showSlide() will not work at all. So, may be just hide navigation, using "display:none" or appending class, for example "navigation-hidden", instead of removing it?

If navigation enabled, showSlide does not work too.
In code: _jR3DCarouselDiv.find('.nav'). ...
"_jR3DCarouselDiv" object does not contains ".nav" childrens, but _jR3DCarouselDiv.parent().find('.navigation') does.

Script version: 1.0.4
Script initiatiation:
$(".jr3dcarousel-gallery").jR3DCarousel({
slideClass: "jr3dcarousel-gallery-image",
...
})
Container:

...

Yet another bug: showSlide() indexing begins from 1, not from 0. Replace "(index-1)" by "index"? :)

@abolotin Thanks for reporting. I'll check

@abolotin 1.fixed, 2.fixed, 3. its always been starting from 0(ReadMe page).


Add shanduur to owners file

Add @shanduur to the owners file to allow reviewing and merging code changes.

/approve
/lgtm


Cannot use both name attributes and validations in custom templates.

Alternative Title: Validation behavior for custom templates is opposite of documentation.
Demonstration JS Bin
I have been using angular-formly for about a week to make some truly beautiful forms for our company's first ever attempt at a unified form style with a modern UX. I'm very grateful for this project and very excited to be using it!
However, I have been unable to submit form data properly, because use of the name attribute in a custom template functions in the exact opposite way that the documentation seems to suggest. Instead of enabling validations and the formControl property, it breaks them!
Specifically on this page about validation, regarding custom templates:

Make sure to specify a name on any ng-model in your custom templates to ensure that the formControl is added to the options.

This is speculation on my part, but formly seems to set not only the id of its fields to things like formly_1_my-custom-template_field_key_0 but also the names, by default. I figure that the majority of people are submitting via the $http service, and so do not see this or are not affected by it?
I have searched for through previous issues for anything involving "name" and "name attribute" but nothing seemed to address this. Am I mis-interpreting the documentation somehow?
Motivating Use Case
We are not using Angular for a single page application, and need to perform a normal HTML form submission with full page reload. Thus I need to be able to control a field's name attribute.

I haven't read through everything yet, but can I just say, this is a terrific bug report. Thank you!

Ah!  The docs are out-dated. I'll update that as soon as possible...
So, angular-formly now comes equipt with a sweet new feature called the ngModelAttrsTemplateManipulator which will automagically add a bunch of attributes based on the config for the field. What's cool about this is it makes creating custom templates a breeze and saves on the amount of watchers necessary for a particular field.
One thing to note about this manipulator is that (with a few exceptions) it will not overwrite attributes that already exist in the template. So, if you specify your own name (for example) then it should not override your own name. I haven't looked at your example yet, but if this behavior is not what you're seeing then that is definitely a bug :-)
I'll look at your example, but let me know if this clears anything up for you.

Alright! You found a real bug! I need to do some work to get it fixed. May be a day or two. But here's a workaround for now :-) Thanks for using angular-formly! I'll let you know when the bug is fixed.

Thanks so much! I am in the process of trying to work my way through the docs on ngModelAttrsTemplateManipulator but will try to apply the workaround first.

The actual solution will be a fix in formly-field, not in the template manipulator. The issue is that the formly-field is watching the field id rather than respecting the possibility that a user could specify a custom name.

Alright, updated the docs! Now to fix the bug!

I think I've got it! Master has been updated and your bug reproduction is working as expected now. Let me know if I've missed anything. Once I get the ok from you, I'll cut a release! Thanks!

Installed from master and removed the workarounds. Specifying names now works for all of my custom templates and the input types that I found issues with before (so I've tested pretty much everything besides radio buttons).


Add beta complete date and staff names

Add date for beta completion and names for PM, DM and SM

ok, updated to public

LGTM 🚀


Fix for RAC-5768

remove /profiles?macs&&ips lookup for macAddress
This PR is still in progress, and needs discussion with team members.
https://rackhd.atlassian.net/browse/RAC-5768
@RackHD/corecommitters

BUILD on-http #487 : FAILURE

BUILD on-http #487  Error Logs  ▼Test Name: Http.Services.Api.Profiles setLookup setLookup should add IP lookup entry and proxy
Error Details: expected setIpAddress to have been called with exact arguments ip1, mac1%D
Stack Trace: AssertionError: expected setIpAddress to have been called with exact arguments ip1, mac1%D
    at spec/lib/services/profiles-api-service-spec.js:102:58
    at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
    at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
    at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
    at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
    at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)
Test Name: Http.Services.Api.Profiles setLookup setLookup does not lookup node on missing required query string
Error Details: req.get is not a function
Stack Trace: TypeError: req.get is not a function
at lib/services/profiles-api-service.js:9:3580
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromiseAtPostResolution (node_modules/on-core/node_modules/bluebird/js/main/promise.js:248:10)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)
Test Name: Http.Services.Api.Profiles setLookup setLookup should set request IP and MAC lookup for query macs and ips
Error Details: expected setIpAddress to have been called with exact arguments ip1, mac1%D
Stack Trace: AssertionError: expected setIpAddress to have been called with exact arguments ip1, mac1%D
at spec/lib/services/profiles-api-service-spec.js:122:58
at tryCatcher (node_modules/on-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (node_modules/on-core/node_modules/bluebird/js/main/promise.js:510:31)
at Promise._settlePromiseAt (node_modules/on-core/node_modules/bluebird/js/main/promise.js:584:18)
at Promise._settlePromises (node_modules/on-core/node_modules/bluebird/js/main/promise.js:700:14)
at Async._drainQueue (node_modules/on-core/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (node_modules/on-core/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (node_modules/on-core/node_modules/bluebird/js/main/async.js:15:14)
Test Name: Http.Services.Api.Profiles setLookup setLookup should not set lookup if IP is null in query
Error Details: expected setIpAddress to not have been called
Stack Trace: AssertionError: expected setIpAddress to not have been called
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should receive both mac and ip query
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: 'd801f0dd-2a2b-4562-bce3-8772a1fc8420' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send 500 set mac and ip fails
Error Details: expected 500 "Internal Server Error", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: 'f97c3ba4-bd7a-44b7-9ed3-e6a2fa3a87dd' } Error: expected 500 "Internal Server Error", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 500 "Internal Server Error", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should call getNode with a compute node type
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: 'db370007-3bfa-4c1e-aba1-074960d565b1' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send down redirect.ipxe if 'macs' are not in req.query
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: '1c9b8d9a-ab10-4783-b5cc-a345a4c56381' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send down redirect.ipxe if a node is new
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: 'f3dc0993-6e80-4988-b448-d05928cef7d1' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send a 500 if profileApiService.getNode fails
Error Details: expected 500 "Internal Server Error", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: '963f7498-3806-47ac-8f32-6f9979186a64' } Error: expected 500 "Internal Server Error", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 500 "Internal Server Error", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send a 200 for a known node with no active graph
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: '2a58f88e-ef85-4e55-bb1d-758228237fb7' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send a 503 on failing to retrieve workflow properties
Error Details: expected 503 "Service Unavailable", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: '2227af3c-f5ba-4946-8dd5-a0a9036e526e' } Error: expected 503 "Service Unavailable", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 503 "Service Unavailable", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)
Test Name: Http.Api.Profiles SB 2.0 GET /profiles should send down a task specific bootfile for a node with an active task
Error Details: expected 200 "OK", got 400 "Bad Request" Response body: { message: 'Cannot read property 'then' of undefined',   status: '400',   UUID: '88a2767e-5507-4220-b1f1-3d868f5b89d1' } Error: expected 200 "OK", got 400 "Bad Request"     at Test._assertStatus (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:232:12)     at Test._assertFunction (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:247:11)     at Test.assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:148:18)     at assert (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:127:12)     at /home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/lib/test.js:124:5     at Test.Request.callback (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)     at IncomingMessage.<anonymous> (/home/jenkins/workspace/on-http/build-deps/on-http/node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)     at emitNone (events.js:72:20)     at IncomingMessage.emit (events.js:166:7)     at endReadableNT (_stream_readable.js:923:12)     at nextTickCallbackWith2Args (node.js:458:9)     at process._tickDomainCallback (node.js:413:17)
Stack Trace: Error: expected 200 "OK", got 400 "Bad Request"
at Test._assertStatus (node_modules/supertest/lib/test.js:232:12)
at Test._assertFunction (node_modules/supertest/lib/test.js:247:11)
at Test.assert (node_modules/supertest/lib/test.js:148:18)
at assert (node_modules/supertest/lib/test.js:127:12)
at node_modules/supertest/lib/test.js:124:5
at Test.Request.callback (node_modules/supertest/node_modules/superagent/lib/node/index.js:703:3)
at IncomingMessage.<anonymous> (node_modules/supertest/node_modules/superagent/lib/node/index.js:922:12)
at endReadableNT (_stream_readable.js:923:12)

BUILD on-http #492 : FAILURE


[new-parser] Ensure Descr properties

Parent issue

#5678

Issue
Currently, some properties in Descr objects are not populated. It leads to errors in the later stage.
https://github.com/apache/incubator-kie-drools/pull/5794#issuecomment-2006830366

Refactor DRLVisitorImpl to ensure robust/shared Descr creation (e.g.  introducing DescrBuilder).
Add unit tests

/take

Done by https://github.com/apache/incubator-kie-drools/pull/5827


Document how to use grpc-compiler

It is not immediately clear how to compile grpc to rust, docs should be updated. I can see some stuff from grpc-examples/gen-rs.sh but it can be documented better.
I may be able to submit pull request once I figure this out (disclaimer: I am noob in Rust).
PS: can this be done via cargo?

I may be able to submit pull request once I figure this out

Pull requests, in particular, documentation pull requests are always welcome.

can this be done via cargo?

Done what? You could install protoc plugin from crates onces it uploaded to crates same way it can be done with protobuf.

can this be done via cargo?

Ah, you mean generate rust code right from cargo. It can be done, some people did it, but I don't know details. You can find some details there.

Ah, you mean generate rust code right from cargo. It can be done, some people did it, but I don't know details. You can find some details there.

Yes, thanks for the pointer. Seems a bit more complicated, so probably not worth the effort describing in readme. Maybe with some more work https://github.com/dwrensha/capnpc-rust it can be feasible.
Anyway, pull request is going your way, and I'm happy to address any comments since my instructions could be too naive.


App Directory pages giving 404

What version of this package are you using?
<EMAIL_ADDRESS><EMAIL_ADDRESS>What operating system, Node.js, and npm version?
Linux
Node v20.5.1
Npm v9.8.0
What happened?
App Directory pages gives 404 when using next-translate-plugin in next.config.js
What did you expect to happen?
App Directory pages should load
Are you willing to submit a pull request to fix this bug?
No, sorry
https://codesandbox.io/p/sandbox/nifty-stallman-4y9z6y

In the provided sample the Pages Dir page /test but /en or /pt-br pages on the App Dir errors on 404 if next.config.js includes next-translate-plugin. Am I missing something?

Okay, got it. It just doesn't work with dynamic [lang] path. Language should be specified via searchParams lang.


Option to auto-close error-list after confirming a jump

I'd love to have the error list automatically close once I jump to one of the errors (i.e. hit enter). Currently, if i want to close it again after jumping, i have to <C-w><C-w>q, which is rather anoying. having a close_on_jump option would be nice, and is the main thing keeping me from using this right now

Good idea! I'll add it somewhere tomorrow

I just added this.
There's a new action jump_close that is bind to o by default.
You can rebind it to <cr> or something else and change the default of jump to any other key.
Thanks again for the suggestion!

Amazing! Thanks a ton!


Fix issues in Traffic Router stemming from merging PR #1720

This resolves the syntax and test issues that arose when PR #1720 was merged into master.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-trafficcontrol-PR/1016/
Test PASSed.


fix: don't report json-formatted commands to Amplitude

The Issue
People who use the PhpStorm extension for DDEV have ddev describe -j happening every minute or so in the background. This causes loads of useless traffic.
How This PR Solves The Issue
Don't report commands when using --json-ouput
Manual Testing Instructions
for ((i=0; i<100; i++)); do ddev describe -j; done >/tmp/out 2>&1 && ddev debug instrumentation flush should not result in new data in amplitude
for ((i=0; i<100; i++)); do ddev describe; done >/tmp/out 2>&1 && ddev debug instrumentation flush SHOULD result in new data in amplitude
https://app.amplitude.com/analytics/ddev/chart/vqe8wcsj can be used to study this; the filtering will have to be adjusted for your use.

I note that PhpStorm plugin uses DDEV_NONINTERACTIVE=true ddev describe -j so we could also target DDEV_NONINTERACTIVE.

I'm not sure if the problem is in DDEV, and if DDEV should fix the "issue". Why not have the PHPStorm add-on fixed?
I noticed while using PHPStorm, that it way too often lets me know that "ddev is unreachable". Even when I simply do a ddev restart.
I feel the problem is in the add-on, not in DDEV itself.
I do think though, that maybe DDEV could mitigate the load, possibly via a way of caching the response for X minutes?
I'm not sure if it's possible, but if the JSON is called, the response could be loaded from an existing previous response for 10 minutes or so, reducing the load that way?

I'm not sure if the problem is in DDEV, and if DDEV should fix the "issue". Why not have the PHPStorm add-on fixed?

You'll see a variety of discussions about this topic over in https://github.com/php-perfect/ddev-intellij-plugin
It queries DDEV state using ddev describe -j. If it did it every 5 minutes instead of whatever it's doing, it would still completely distort the statistics on Amplitude.  People leave a project running and leave PhpStorm sitting there and ...
But if you have a better idea how to do it, an issue with a suggestion might go ok over there.

I'm not sure if it's possible, but if the JSON is called, the response could be loaded from an existing previous response for 10 minutes or so, reducing the load that way?

Why even bother polling DDEV for results if they are cached?
But please, followups over there where they'll do some good.


Edit Template click not working with latest archetype on-premise

When using the following archetype command the Edit Template option from pageinfo popover menu is not opening the template on click.
mvn -B archetype:generate  -D archetypeGroupId=com.adobe.aem  -D archetypeArtifactId=aem-project-archetype  -D archetypeVersion=24  -D appTitle="AEM Simple"  -D appId="aem-simple"  -D groupId="com.aem" -D aemVersion=6.5.6
Steps to Reproduce - Create a project with about command and try opening the template using the edit template option from page
Platform and Version - AEM 6.5.6 On-Premise
I do not see anything in the logs both on the frontend and backend.
Thanks,
Amogh

Hi @AmoghDaryapurkar created a project and it works for me. I guess the problem lies in aemVersion=6.5.6 since this version can not be entered yet. Only allowed values are 6.4.8 , 6.5.5 and cloud. Can you please retry with 6.5.5 ?

@msagolj - Confirmed - It's an issue with AEM SP 6.5.6 and working fine on AEM SP 6.5.5

@AmoghDaryapurkar thx, for confirming. closing issue.


How will sslsplit handle quic?

This is not a bug report; I'm trying to learn how quic will affect MITM in general and sslsplit in particular.
In short, quic - wikipedia is an UDP-based protocol that is seeing increasing adoption in place of http/2.
It seems that MITM on quic is not entirely impossible - mitmproxy seems to be working on it (branch here, issue discussion).
Given that especially large sites are rapidly switching over to quic, it seems desirable to have an option of decrypting or at least downgrading it to http in sslsplit.

Just to add, downgrading should work if you just block 443/udp - clients will fail over to https/tcp

@trifle could you please elaborate on this? If I reject incoming UDP connections on port 443 to the client (e.g. by setting iptables -I INPUT -p udp --dport 443 -j REJECT), the server should fallback to HTTP/1 or HTTP/2 over tcp instead of HTTP/3 over udp/quic?

@daMatz Disclaimer: I haven't investigated this extensively.
Handling connection failures is generally clients' responsibility (so has nothing to do with the server). This means that when you block UDP, browsers will need to figure out what to do next. There is a passage in the standard stating:

All applications running on top of QUIC must therefore either be prepared to accept connectivity failure on such networks or be engineered to fall back to some other transport protocol. In the case of HTTP, this fallback is TLS over TCP.

So yes, we can generally assume clients will fall back to TCP, but it is an open question whether they actually do. I can imagine some clients to just error out either due to laziness, ignorance or malice.

Alright thanks! I have to check how the behaviour is in my case, as I'm looking at mobile applications and different network libraries 👍

I'd be very interested in your results, so if you could drop a quick comment - even with a rough impression - that would be great!


Adding camera tf for display in gepetto-viewer - [merged]

In GitLab by @cmastalli on Jan 29, 2019, 01:46
Merges cameraTF-display -> topic/refact
This PR allows us to pass default camera transform for spawning the gepetto-gui.

In GitLab by @nmansard on Jan 29, 2019, 08:33
This is a typical example that makes a MR complex. You said "changed the camera view" ... and you add a floor.
Please remove. If you want to add a shortcut for adding the floor, let's discuss it. I believe that is part of how you load your model, hence your robot, not a diagnostic tool per se.

In GitLab by @nmansard on Jan 29, 2019, 08:33
Remove the floor and ok for merge.

In GitLab by @cmastalli on Jan 29, 2019, 08:35
assigned to @cmastalli

In GitLab by @cmastalli on Jan 29, 2019, 08:35
assigned to @nmansard

In GitLab by @cmastalli on Jan 29, 2019, 08:38
I removed it

In GitLab by @cmastalli on Jan 29, 2019, 08:38
resolved all discussions

In GitLab by @cmastalli on Jan 29, 2019, 08:38
changed this line in version 2 of the diff

In GitLab by @cmastalli on Jan 29, 2019, 08:38
added 1 commit
e359e9b1 - [display] Removed floor in gepetto-viewer
Compare with previous version

In GitLab by @cmastalli on Jan 29, 2019, 08:39
@nmansard you can merge it, there is floor.

In GitLab by @nmansard on Jan 29, 2019, 08:46
thx

In GitLab by @nmansard on Jan 29, 2019, 08:46
merged

In GitLab by @nmansard on Jan 29, 2019, 08:46
mentioned in commit 2cf7b7ae686c17b82e24be36d0f9e96e266abb84


2 Vehicles in one Account

Is your feature request related to a problem? Please describe.
I have two cars in one Kia Account, I can only add the account once, so I can not see the second car.
Describe the solution you'd like
Make it possible to differentiante between 2 cars / parallel
Include the logs of the end point from Data in HA if this is a sensor
Describe alternatives you've considered
I have thought about splitting the two cars into two accounts, but that will make it bothersome with the Kia Mobile App.
Additional context

Which region? I thought this already worked. Any logs you can provide?

It seems that this problem has solved itself somehow, meanwhile the two cars are both visible and provide data.
Maybe it was because of the recent changes to the API.. can be closed :-)


Unable to modify sysctl 'net.core.(w/r)mem_*'

Describe the bug
Permission denied when attempting to modify:
net.core.rmem_max
net.core.wmem_max
net.core.rmem_default
net.core.wmem_default

e.g.
> docker run -it --rm --privileged alpine sysctl net.core.rmem_default=1048576

To Reproduce

docker run -it --rm --privileged alpine sysctl net.core.rmem_default=1048576
Receive "permission denied" sysctl: error setting key 'net.core.rmem_default': Permission denied

Expected behavior
The parameter to be set to the supplied value
Diagnostic report (REQUIRED)
The 'upload diagnistics' button does not work for me, when I click it it attempts (and fails) to migrate existing docker desktop data (docker desktop is not installed on my machine)
Screenshots and additional context (optional)
No response

I also appear to be having this problem:
# cat /proc/sys/net/core/rmem_default
229376
# sysctl -w net.core.rmem_default=67108864
sysctl: setting key "net.core.rmem_default": Operation not permitted

Fixed for the next version.

Released in v1.9.0.


🎮 Game Request
The game mechanics include a central player character firing projectiles towards dynamically spawning enemies.

Point down the features
Leveraging JavaScript’s animation Frame for fluid movement and user interaction, the game provides an engaging
experience.
This project highlights my proficiency in front-end development, JavaScript programming, and game design
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hello @vedanshipathak, Time's up!⏰
Sorry for closing your issue!
But it's more than a week since we haven't received anything from your side 😢 .
Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥
All the best! 🚀
Happy Hacking! 💗

Hey @vedanshipathak ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇