Service not getting rule on port 8080, only on 80

Hi there
I'm trying to upgrade from 1.0.5 to 1.2.10 (latest working on my 1.12 K8 cluster)
I configured all My DestinationRule/Virtualservice and I notice that traffic management isn't working unless i move my k8 services from port 8080 to 80.
here is my configuration
kind: DestinationRule
apiVersion: networking.istio.io/v1alpha3
metadata:
 name: myservice-service-destination
 namespace: flcloudns
 ...
 labels:
   app: myservice-service
   buildNum: '189'
   chart: fl-mesh-1.0.0
   heritage: Tiller
   profile: ns
   release: myservice-service
spec:
 host: myservice.flcloudns.svc.cluster.local
 trafficPolicy: ~
 subsets:
   - labels:
       version: blue
     name: blue-myservice
   - labels:
       version: green
     name: green-myservice

kind: VirtualService
apiVersion: networking.istio.io/v1alpha3
metadata:
  name: myservice-service-vservice
  namespace: flcloudns
  labels:
    app: myservice-service
    heritage: Tiller
    profile: ns
    release: myservice-service
spec:
  hosts:
    - myservice.flcloudns.svc.cluster.local
  gateways: ~
  http:
    - match:
        - headers:
            myservice:
              exact: green
      route:
        - destination:
            host: myservice.flcloudns.svc.cluster.local
            subset: green-myservice
    - match:
        - headers:
            myservice:
              exact: blue
      route:
        - destination:
            host: myservice.flcloudns.svc.cluster.local
            subset: blue-myservice
    - route:
        - destination:
            host: myservice.flcloudns.svc.cluster.local
            subset: blue-myservice
  tcp: ~
  tls: ~
  exportTo: ~

metadata:
  name: myservice
  namespace: flcloudns
    app: myservice
    buildNum: '189'
    chart: fl-mesh-1.0.0
    heritage: Tiller
    profile: ns
    release: myservice-service
spec:
  ports:
    - name: http-web
      protocol: TCP
      port: 8080
      targetPort: http-web
  selector:
    app: myservice
    profile: ns
  clusterIP: *********
  type: ClusterIP
  sessionAffinity: None
status:
  loadBalancer: {}
kind: Service

What am I supposed to do to have it work on port 8080? Just changing the port tom 8080 to 80 let traffig routes back to work.
No evidence of error in log nor kiali UI.

I finally found the issue.
I got a non-istio headless service sitting on the same port (8080) as my istio services.
The very big problem is that route evaluation seems not to sort available routes, so the problem was NEVER SHOWING on dev environment (with the very same headless service) but ALWAYS SHOWING in test environment with no difference at all on configuration or other environment setting.
It took me months to dig out the issue (i'm struggling since istio 1.2.5! )
Is there a way to notify that a headless service is entering the mesh ?
Moreover I think that not-sorted rule evaluation could drive people crazy with troubleshooting, is it possible to have a more deterministic evaluation approach?
To anybody reaching this ticket in despair like me, to dig out the problem I had to retrieve all routing information from sidecars as descriveb here: https://istio.io/v1.2/docs/ops/traffic-management/proxy-cmd/

I don't think we have these issues in newer (supported) versions if I understand right. Headless services behavior is completely different now. Can you upgrade to 1.5+? We cannot support older versions

Closing as this is unsupported and, afaik, is fixed.


Address PR 25 Merge Conflicts and Update 2.x/ Structure and URLs

This PR supercedes https://github.com/opencybersecurityalliance/stix-extensions/pull/25 developed by Mateusz Zych<EMAIL_ADDRESS>Vasileios Mavroeidis<EMAIL_ADDRESS>and addresses the merge conflicts.
The folder structure has been updated, reorganizing the contents of 2.x/. This also required updating the URLs in the schemas, schema examples, and the file links in the READMEs.

Combining inputs from Cyentific-rni and APL for folder restructure.


Cannot detect login info even after logged in!

When i start my app it shows that it is connecting to the Google Play Game in green animation and then shows the message of failed to sign in. I might need some help please!

Can you share the log of when you are signing in?  Usually there is some indicator of the problem.
Things to check:

The applicationId in your build.gradle matches the packageId in the linked Android application in the Play Console.
The SHA1 of the key you used to sign your application also matches.
The appId in your AndroidManifest.xml (or in a string resource file) matches the game ID the applications are linked to.


NUTS paper benchmarks

This adds the old NUTS benchmark test we had in link back to the benchmark suit.
This depends on #826 for the Stochastic volatility model to work efficiently.

I removed the respective build_log_data calls and adjusted the codes.

By merging with the master, I must have somehow added commits in the docs that I did not intend to add. I'll check why that happened and reverse this before merging.

@trappmartin perhaps rebase master branch into this PR? It seems this PR contains a lot of code not from benchmarking purposes.

Yes, I think I accidentally merged some version of the master into this PR. I'll try to rebase asap.

WTF


use an expression tree to encode a model

After discussions, we've decided to switch to using an expression tree to encode each model and submodel (see #14). The idea is that this would decouple the different aspects of PyBaMM (e.g. model/set_parmeters/discretisation/solver) and allow for a pipeline approach, where the expression tree is mutated by each aspect in turn.
This issue is to provide an initial implementation of the expression tree so that it can start being used by the rest of the code.
Possible class hierarchy:

class Symbol: base class, holds list of child nodes, has a (string) name

operators used to build up tree defined here (e.g. symbol + symbol returns Addition(symbol,symbol))
note: could we use anytree to provide basic tree functionality?: https://anytree.readthedocs.io/en/2.4.3/index.html

class UnaryOperator(Symbol): provides a base class for all the unary operators (e.g. Negate)
class BinaryOperator(Symbol): same but for binary ops
class Addition(BinaryOperator): implementation of the addition op,
class Laplacian(UnaryOperator): implementation of the laplacian op.
many other ops....
class Parameter(Symbol): a parameter (symbolic, no value). A Parameter has a list of domains (text) that it is valid over
class Variable(Symbol): a variable that will (eventually) be discretised over the mesh. At the moment it is purely symbolic. A variable has a list of domains (text) that it is valid over
class Vector(Symbol): a node representing a vector (the spatial discretisation class/function will add these in)
class Matrix(Symbol): a node representing a matrix (the spatial discretisation class/function will add these in)
class Scalar(Symbol): a node representing a scalar (the set_parameters function will add these in place of Parameter). A Scalar has a list of index ranges, and a value for each range
class IndependentVariable(Symbol): a node representing an independent variable (space or time)

iteration through tree
provide functionality for iterating through the tree, e.g.
[node.name for node in PreOrderIter(f)] # pre-order traversal
[node.name for node in PostOrderIter(f)] # post-order traversal
[node.name for node in LevelOrderIter(f)] # level-order (i.e. breadth-first)

(note: these examples come from the anytree library)
other
there will be other functionality that we will need. e.g converting to/from other types of expression trees like Fenics UML, but this issue is for the initial implementation, other things can go in separate issues...

Hi @tinosulzer. I thought it was a good idea to move the tree setup to the base class. In the process I've removed the references to child nodes as left, right and child, so you only have the generic children iterable. Let me know if this messes up anything you where doing.

Note:  anytree keeps track of parent/child nodes under the hood, so you can't add the same node to the tree twice. Hence we need to copy each node as its added to the tree (see commit 4919f4b)

Of course this copying is going to be a hassle when dealing with matrix nodes! Need to make sure the matrix is not copied....

Hi @tinosulzer. I thought it was a good idea to move the tree setup to the base class. In the process I've removed the references to child nodes as left, right and child, so you only have the generic children iterable. Let me know if this messes up anything you where doing.

Sounds good, should only require small refactoring in #18 and #20 , we can finalise those once this issue is merged into master

commit 8395a2a tests that matrices added to the tree (multiple times) all reference the same matrix. That is, modifications to one modify all of them

I'm happy that this is a reasonable first draft of the expression tree. There are a few remaining issues, but I'll open separate issues for these:

class IndependentVariable(Symbol): a node representing an independent variable (space or time)
"A Scalar has a list of index ranges, and a value for each range". This is not implemented
class MatrixVectorMultiplication: not sure this is needed, as a Multiplication node with a Matrix and Vector children is easily identifiable and dealt with by the Multiplication node
class Parameter  has a family member, this is not documented as I'm not sure what it does
.... others?

class IndependentVariable(Symbol): a node representing an independent variable (space or time)

New issue?

"A Scalar has a list of index ranges, and a value for each range". This is not implemented

New issue?

class MatrixVectorMultiplication: not sure this is needed, as a Multiplication node with a Matrix and Vector children is easily identifiable and dealt with by the Multiplication node

Agreed that this is unnecessary. Will change Multiplication so that @ is used if self is a Matrix (e.g. Matrix * grad(var) should use @ even though grad is not a Vector object)

class Parameter  has a family member, this is not documented as I'm not sure what it does

Agree that this is unnecessary.

.... others?

Sounds good. I'll make those new issues for 1. and 2. once #16 is closed. I think the only thing we need to do then on this issue is to change evaluate to evaluate(self, y, t)


[SPARK-41238][CONNECT][PYTHON][FOLLOWUP] Support DayTimeIntervalType in the client

What changes were proposed in this pull request?
Support DayTimeIntervalType in the client
Why are the changes needed?
In https://github.com/apache/spark/pull/38770, I forgot to deal with DayTimeIntervalType
Does this PR introduce any user-facing change?
No
How was this patch tested?
added test case, the schema should be
In [1]: query = """ SELECT INTERVAL '100 10:30' DAY TO MINUTE AS interval """

In [2]: spark.sql(query).schema
Out[2]: StructType([StructField('interval', DayTimeIntervalType(0, 2), False)])

thanks for reivews, merged into master


Optimizing video seek time for still image extraction

fixes #85
include monkeypatching SDK helper for still image extraction (partial fix for #69)

I am curious though what errors we were getting with the floats

Was a bug in the SDK code. I will update the upstream later today.


Remove pessimizing std::move() calls.

Found with -Wpessimizing-move.

Can we add warning by default here please: https://github.com/lyft/envoy/blob/master/common.cmake

GCC doesn't support -Wpessimizing-move, so it would break the build.

Maybe have a clang section like this one: https://github.com/lyft/envoy/blob/master/common.cmake#L3
? It would be nice to just add this by default so that in the future if someone compiles with clang we automatically see and fix the issue.
Anyhow, looks fine pending CLA signing.


Add a LICENSE file

Hello, we would like to use this library for a project in an open source project at IBM, but we need a LICENSE file in the repo to move forward with using this library. Can you add one for us at your convenience? Most licenses like MIT, Apache 2, etc will work.
Thanks!

Done. I've added a MIT license file.
BTW, beware that a big PR is coming from one of my students. There will be very basic support for load balancing and node autodiscovery, but still in alpha stage ...

I've already accepted the PR, but it is on branch mio. It is a completely new library since now it is an asynchronous client using Futures (eventual + mio crates). I will soon merge the mio branch into master, so the library will change completely.

Thanks @neich . Will be be learning from your work here. We are creating a pure Swift adapter similar to what you did here for Rust. :)


return to pypi msgspec dependency

Currently msgspec supports python3.13 only in main branch, so, to test our compatibility with python3.13 we have to use direct dependency on msgspec git project. This doesn't allow to deploy xpypact to PyPI.
Return to normal PyPI dependency to msgspec on its next release and release xpypact with this new dependency.

Stale issue message


Does it detect Nextera XT DNA adapter as well?

Hello,
does this algorithm detect Nextera XT DNA adapters as well?
For example I7_Primer_Nextera_XT_and_Nextera_Enrichment_N707 (source: https://github.com/BioInfoTools/BBMap/blob/master/resources/adapters.fa)
Thanks.

Hi @stemangiola.
No, this tool is primarily for removing Nextera Mate Pair junction adapters and arranging the reads in a way suitable for assembly/alignment.  There is some basic support for removing external adapters when the DNA fragment template is shorter than 2x the read length and read 1 covers the read 2 external adapter (or vice versa).
There are a variety of general purpose trimmers you could use for external adapters, for example:
http://cutadapt.readthedocs.io/en/stable/guide.html
https://github.com/lh3/trimadap
http://www.usadellab.org/cms/?page=trimmomatic
https://github.com/relipmoc/skewer
cheers,
Jared


Bug in beam search of Expert

Hi all,
Thank you for open sourcing this repository.
I'm having trouble when decoding an expert model.
In particular, all I did was clone the repo and run the following command:
python3 main.py --model experts  --label_smoothing --noam --emb_dim 300 --hidden_dim 300 --hop 1 --heads 2 --topk 5 --cuda --pretrain_emb --softmax --basic_learner --schedule 10000 --save_path save/moel/

It seems like the model finishes training, and in line 97 of main.py, when trying to run evaluation, I get the following traceback:
Traceback (most recent call last):
  File "main.py", line 97, in <module>
    loss_test, ppl_test, bce_test, acc_test, bleu_score_g, bleu_score_b= evaluate(model, data_loader_tst ,ty="test", max_dec_step=50)
  File "/home/repos/empathetic_systems/MoEL/model/common_layer.py", line 824, in evaluate
    sent_b = t.beam_search(batch, max_dec_step=max_dec_step)
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 273, in beam_search
    active_inst_idx_list = beam_decode_step(inst_dec_beams, len_dec_seq, src_seq, src_enc, inst_idx_to_position_map, n_bm, enc_batch_extend_vocab, extra_zeros, mask_src, encoder_db, mask_transformer_db, DB_ext_vocab_batch)
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 205, in beam_decode_step
    dec_seq = prepare_beam_dec_seq(inst_dec_beams, len_dec_seq)
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 157, in prepare_beam_dec_seq
    dec_partial_seq = [b.get_current_state() for b in inst_dec_beams if not b.done]
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 157, in <listcomp>
    dec_partial_seq = [b.get_current_state() for b in inst_dec_beams if not b.done]
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 33, in get_current_state
    return self.get_tentative_hypothesis()
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 90, in get_tentative_hypothesis
    hyps = [self.get_hypothesis(k) for k in keys]
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 90, in <listcomp>
    hyps = [self.get_hypothesis(k) for k in keys]
  File "/home/repos/empathetic_systems/MoEL/utils/beam_omt_experts.py", line 100, in get_hypothesis
    hyp.append(self.next_ys[j+1][k])
IndexError: tensors used as indices must be long, byte or bool tensors

In particular, I'm seeing that the k value, as well as self.prev_ks, gets changed somewhere along the way and no longer hold indices but instead stores float values.
(Pdb) pp k
tensor(0.0014, device='cuda:0')

(Pdb) self.prev_ks
[tensor([0.0026, 0.0054, 0.0003, 0.0069, 0.0075], device='cuda:0'), tensor([1.4338e-03, 1.0014e+00, 2.0014e+00, 7.5908e-04, 1.0008e+00],
       device='cuda:0')]

Do you have any pointers on how to resolve this?
Thank you in advance.

Hmm perhaps it's because I'm using a different version of torch.

嗯，也许是因为我使用的是不同版本的手电筒。

Did you solve this problem please? I also encountered this problem.

Hi @ajyl , did you find a solution to it?

If I remember correctly, this specific issue for me was because I was using the wrong version of torch.


How to train data with multi-class label

There are 600 classes in the image dataset, each image belongs to one or more classes. How can I train such dataset?
Is it a correct choice:
Present image label by 600*1 binary vector, which contains one or more "1".
Bulid network with 600 outputs, and activate them with LogisticRegressionOutput()  (BTW, Will mxnet set the loss function to logistic loss automatically?)
I obtain a 0.49% mAP on this dataset, by it's reported 36.1% in the paper. (Parameters are set the same as the paper)

Proposed Labels: "Question","Discussion"

Can you please ask usage related questions at - https://discuss.mxnet.io/


pulltorefresh doesnt work correctly

Describe the bug
After activation of the pulltorefresh in code , user moving down but if he wants to go on the website , page refresh immediately . So there is no way to go up after going down of the website . Page immediately refreshed .
Expected behavior
Normally when user goes down and then come back to upper site of the website .But after going down of the website ,user can not go up ,page refreshed immediately .

Kotlin variant hasn't been updated for a while now. I'll work on it by next month.
Meanwhile, you can get started with its Java variant, and then update with Kotlin later.


2.5.4 Add support for Neo.SmartContract.Framework.Services.Neo.Transaction.GetUnspentCoins()

Add support for Neo.SmartContract.Framework.Services.Neo.Transaction.GetUnspentCoins() in Transactions.cs ...even if it starts off as throw new NotImplementedException();

Partially added, will implement later


Update public facing restricted item copy for consistency

Related to: Provide an indication that staff are viewing a fully restricted item https://github.com/wellcomecollection/wellcomecollection.org/issues/11257
Current solution

Proposed solution

Nice to have if this can be done easily: remove modal screen and use the item viewer template
Ashley said there weren't any security concerns with people seeing the information on the item viewer so I think we could simplify by removing the modal and using the current partially restricted view. This will make it a more consistent and similar experience for the user.

Update copy according to designs: https://www.figma.com/design/X5CL6uhscEAr6VO1DXk6fd/Restricted-item-indication?node-id=4443-1615&t=bSscdwmlUUUNmZI0-1

So I just checked with Ashley and there's another possible scenario where an item is partially restricted but the physical item isn't in our Collection e.g. https://wellcomecollection.org/works/a2242545
This means the line '...library members can request to view this item in the library" isn't going to be accurate.

I'm assuming this isn't going to be a common scenario so I suggest we tweak the copy. It's a little less clear than what it was originally but saves us from managing multiple variations of copy for what may be a niche scenario.

This image cannot be viewed online.
Wellcome Collection Library members may be able to request to view this item in the library.

@LaurenFBaily @jcateswellcome let me know if the above assumption isn't correct and should speak to the Collections info team.

@dana-saur I think that looks good. There are a reasonable number of codebreakers items but it will be the minority that are restricted so it is certainly an edge case and I think a reasonable assumption.


feature request: postgres

This one won't be as detailed as I'm on the phone.
Use case: I don't like persistent volumes in k8s. More things to backup. My postgres instance is already backed up and maintained.
I see there's already storage contracts which is ❤ , so just add another for postgres

I'm on board doing the work, just want the idea vetted

yeah this is an awesome idea.
i'd love to see a ./internal/storage/sql.go implementation. it might be possible to support all of postgresql, sqlite and mysql using the standard library or sqlx.
i'd happily review, test and accept a PR for this :D

Awesome. I can be lazy and reuse lots of https://github.com/XanderStrike/goplaxt/blob/master/lib/store/postgresql.go
I'll try to have a pr for you tomorrow (I think your opposite of me in ru timezone)

this is now in 0.2.1

Hi,
i see there is the migrating manual https://place1.github.io/wg-access-server/3-storage/#example-file-to-sqlite3
Is there a way to deploy it with postgres backend via Helm chart? I deploy it with Terraform
resource "helm_release" "wireguard" {
  name             = "wireguard"
  repository       = "https://place1.github.io/wg-access-server"
  chart            = "wg-access-server"
  version          = "v0.4.6"
  namespace        = "vpn-wireguard"
  create_namespace = false
  recreate_pods    = false
  force_update     = false

  values = [
    <<EOF

config:
  loglevel: info
  externalHost: "vpn.${var.dns_zone}"
  wireguard:
    externalHost: "vpn.${var.dns_zone}"
  vpn:
    cidr: <IP_ADDRESS>/24
    allowedIPs:
      - ${var.vpc_cidr[0]}
      - ${var.vpc_cidr[1]}
  dns:
    enabled: true

web:
  config:
    adminUsername: "admin"
    adminPassword: "${random_password.wg_pass.result}"
  service:
    type: ClusterIP

wireguard:
  config:
    privateKey: "${random_id.prv_key.b64_std}"
  service:
    type: ClusterIP
    annotations:
      service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: instance
      service.beta.kubernetes.io/aws-load-balancer-type: nlb
      service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'

persistence:
  enabled: false

ingress:
  enabled: true
  annotations:
    kubernetes.io/ingress.class: "nginx"
    kubernetes.io/tls-acme: "true"
    acme.cert-manager.io/http01-edit-in-place: "true"
    cert-manager.io/cluster-issuer: "${var.acme_issuer}"
  hosts:
    - vpn-admin.${var.dns_zone}
  tls:
    - secretName: tls-key-wireguard-web
      hosts:
        - vpn-admin.${var.dns_zone}

nameOverride: "wireguard"

fullnameOverride: "wireguard"

imagePullSecrets: []

image:
  repository: place1/wg-access-server
  pullPolicy: IfNotPresent

# multiple replicas is only supported when using
# a supported highly-available storage backend (i.e. postgresql)
replicas: 1

strategy: {}
  # the deployment strategy type will default to "Recreate" when persistence is enabled
  # or "RollingUpdate" when persistence is not enabled.
  # type: Recreate

resources: {}
  # We usually recommend not to specify default resources and to leave this as a conscious
  # choice for the user. This also increases chances charts run on environments with little
  # resources, such as Minikube. If you do want to specify resources, uncomment the following
  # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  # limits:
  #   cpu: 100m
  #   memory: 128Mi
  # requests:
  #   cpu: 100m
  #   memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}

EOF
    ,
  ]

  depends_on = [
    kubernetes_namespace.vpn,
    random_password.wg_pass
  ]
}

Hello @Place1
Hello @halkeye
Can anybody say if adding into Helm chart's deployment template env block the following code, will it give us an ability to deploy Helms with different storage backends?
            {{- if .Values.wireguard.config.storage}}
            - name: WG_STORAGE
              valueFrom:
                secretKeyRef:
                  name: "{{ $fullName }}"
                  key: storage
            {{- end }}

If it might be a solution, could you please implement it?

I recommend you making a PR to the fork - https://github.com/freifunkMUC/wg-access-server place1 version isn't really updated anymore.

Thanks. Fortunately there is already included.
https://github.com/freifunkMUC/wg-access-server-chart/blob/main/charts/wg-access-server/values.yaml


feat: download settlement report - bff api

Codecov Report

Merging #1474 (b3d200f) into main (aa94ae6) will increase coverage by 19.76%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #1474       +/-   ##
===========================================
+ Coverage   26.89%   46.65%   +19.76%
===========================================
  Files          60       76       +16
  Lines         978     1376      +398
  Branches       50        0       -50
===========================================
+ Hits          263      642      +379
- Misses        705      719       +14
- Partials       10       15        +5

Impacted Files
Coverage Δ

...sts/Integration/Controllers/ControllerTestsBase.cs
100.00% <100.00%> (ø)

...ollers/WholesaleSettlementReportControllerTests.cs
100.00% <100.00%> (ø)

...Controllers/WholesaleSettlementReportController.cs
100.00% <100.00%> (ø)

... and 19 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Go to definition

Ctrl+Click on a parameter, credential or output reference ({{ bundle.... }}) to go to where it is defined.
I can imagine this being particularly useful for outputs if the manifest gets complicated...

Fixed via #30.


[BUG]Integration only supports a single index / index-pattern for the entire integration

What is the bug?
When creating a new integration that contains a dashboard or multiple dashboards that are based on more than one index and more than one index-pattern - the integration doesn’t instantiates correctly
How can one reproduce the bug?
Use a multiple dashboards with multi-indices/multi-index patterns and the instantiated dashboards will experience visible errors
What is the expected behavior?
An integration should support all the underlying indices and index-patterns
In practice the existing schema capabilities of the integration actually implies that the integration can support multiple indices and index-patterns since it already supports multiple index mapping - but this is not the case...

@Swiddis
This has also arrived from external submitted Issue


[$1000] Pronouns loses focus on reload, select and reopen pronouns page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open the app
Open settings
Open Profile
Open Pronouns
Reload
Change pronouns value
Reopen Pronouns and observe that now app does not focus on pronouns search field
Similarly, open timezone page from settings->profile->timezone->timezone
Reload
Change timezone value and reopen to observe that now app does not focus on timezone search field too

Expected Result:
App should focus on pronouns/timezone search field whenever we open pronouns page or timezone page
Actual Result:
App does not focus on pronouns/timezone search field if we open pronouns/timezone, reload, change value and reopen pronouns/timezone page
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: 1.3.41-3
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/b7e9c6a0-fa1b-42a9-826b-762988518cd4
https://github.com/Expensify/App/assets/43996225/5b9e96ab-f467-43ac-a833-9fa83ac31c31
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689574508646579
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~014d14df444b7a139c
Upwork Job ID:<PHONE_NUMBER>971427840
Last Price Increase: 2023-08-04

Proposal
Please re-state the problem that we are trying to solve in this issue.
The problem is that the Pronouns page does not automatically focus on the Pronouns search field after a user opens the page, reloads, changes the pronouns value, and then reopens the Pronouns page.
What is the root cause of that problem?
The root cause of the issue is that the Pronouns search field does not have the autoFocus property set to true in the TextInput component within the BaseSelectionListRadio component. This causes the input to not automatically gain focus when the Pronouns page is reopened, especially after the sequence of actions detailed in the problem description.
What changes do you think we should make in order to solve the problem?
To solve the problem, we should pass the autoFocus property with the value of true to the TextInput component inside the BaseSelectionListRadio component (src\components\SelectionListRadio\BaseSelectionListRadio.js). This will make the Pronouns search field automatically gain focus whenever the Pronouns page is opened. This solution aligns with the expected behavior. However, if there are additional nuances or complex dependencies in the current implementation, a deeper investigation and potential adjustments to the proposed solution may be necessary.

I'm not really sure if the focus should return to the input field upon reload. Asking in Slack.

I've had a chat in Slack about this, and I don't think focus should return to the input field when the page is refreshed. That said, if there are other instances within the app in which focus does return to an input field after refresh, we can get parity, but I'll need some examples of that behavior first.

Ok, I think @dhanashree-sawant has made a good point for keeping this issue open (citing @Ollyws above). I'm going to reopen and get it going.

https://github.com/Expensify/App/assets/139998585/e6092127-8e33-4dc5-901a-9909b3ce4017
Proposal
Please re-state the problem that we are trying to solve in this issue.
On Pronounce page, selected text does not auto focused after refresh.
What is the root cause of that problem?
after reload Pronounce page, once update the pronounce,  the function calling navigation.navigate().
And then the pronounce page does not rerender from profile page.
What changes do you think we should make in order to solve the problem?
https://github.com/Expensify/App/blob/82669ae1201f3778986ee26209fb80878f166cbd/src/libs/actions/PersonalDetails.js#L122-L140
need to change
Navigation.goBack(ROUTES.SETTINGS_PROFILE);

@fedirjh what do you think of the above?

@fedirjh Not able to reproduce now :(

@fedirjh Reproduction steps are modified now. Could you check?

Thanks for updating the repro steps @kavimuru! Can you try reproducing the behavior on staging to see if it persists? Thanks!

Issue not reproducible during KI retests. (First week)

Bumping while we wait on additional KI retests to run.

I think we need to wait on another round of tests to see if this behavior persists.

@mvtglobally can you test to see if this behavior persists?

@johncschuster we are not able to repro
https://github.com/Expensify/App/assets/43995119/b3ae23e2-44dc-40c6-ba4d-7eb4f609c83e

Great! In that case, let's close this one up!


fix prefix reading and add remove function to micromamba

We're having this on Windows:
  C:\Miniconda\envs\mamba-tests\Library\include\solv/repo.h(150): warning C4244: 'argument': conversion from '__int64' to 'Id', possible loss of data
    src/package_info.cpp(182): error C2440: 'static_cast': cannot convert from 'nlohmann::basic_json<std::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator,nlohmann::adl_serializer,std::vector<uint8_t,std::allocator<_Ty>>>' to 'std::vector<std::string,std::allocator<_Ty>>'
            with

Doing something like this:
 for (auto d : j["depends"])
{
         depends.push_back(d);
}

Works for me, but looking around the web I wondered if this https://github.com/nlohmann/json/issues/861 is not the actual problem, this issue is closed, but I found another one that's still open and assess a similar problem.
Did you fix the problem that was grabbing incomplete data?


Improve ell-studio CLI UX.

Issue
Currently, running ell-studio with no args fails unexpectedly with an unhandled TypeError:
om:ell kw$ uvx --from ell-ai[all] ell-studio
Traceback (most recent call last):
  File "/Users/kw/.cache/uv/archive-v0/yRhKWbo2kdkMVmJ2BWBWg/bin/ell-studio", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/kw/.cache/uv/archive-v0/yRhKWbo2kdkMVmJ2BWBWg/lib/python3.12/site-packages/ell/studio/__main__.py", line 44, in main
    db_path = os.path.join(args.storage_dir)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 76, in join
TypeError: expected str, bytes or os.PathLike object, not NoneType
om:ell kw$

Changes

Fix the default behavior (no args passed) to align with the documented default of cwd (via ell.studio.config.Config).
Port usage of os.path to pathlib.Path.
Port usage of print() to the logger module.
Add a --open flag to automatically open the UI in a browser on launch.
Add a -v/--verbose flag to change the log level from INFO -> DEBUG.

Testing
$ uv run --no-project --with toml --with pytest build.py
...
$ uvx poetry run ell-studio --open -v
...
$ uvx poetry run ell-studio --storage-dir=./ell_logs --open -v

and verified UI was functional.

Amazing!


tests: Run update on Linux before tests

CI Vulkan-Tools build # 421 running.

CI Vulkan-Tools build # 421 passed.


Segmentation fault while using Django with python-devtools

Describe the bug
Using Django==3.2.13 this is a massive project in general.
Loaded 416 watched modules so far from paths.
When I used python-devtools got a segfault with:
Thread 44 "python" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffa1329700 (LWP 13697)]
_PyMem_DebugMalloc (ctx=0x555555b59380 <_PyMem_Debug+96>, nbytes=40) at Objects/obmalloc.c:2329
warning: Source file is more recent than executable.
2329        _PyMem_DebugCheckGIL(__func__);

bt output:
(gdb) bt
#0  _PyMem_DebugMalloc (ctx=0x555555b59380 <_PyMem_Debug+96>, nbytes=40) at Objects/obmalloc.c:2329
#1  0x00005555556029a6 in PyObject_Malloc (size=<optimized out>) at Objects/obmalloc.c:685
#2  0x00005555556ed825 in _PyObject_GC_Alloc (use_calloc=use_calloc@entry=0, basicsize=<optimized out>) at Modules/gcmodule.c:2225
#3  0x00005555556ee7be in _PyObject_GC_Malloc (basicsize=<optimized out>) at Modules/gcmodule.c:2252
#4  0x00005555556ee7eb in _PyObject_GC_New (tp=0x7ffff6e893c0) at Modules/gcmodule.c:2264
...
#56155 0x00005555555bec20 in PyVectorcall_Call (callable=callable@entry=0x7fffa2563ef0, tuple=tuple@entry=0x7ffff73e3050, kwargs=kwargs@entry=0x7fffa24d6a10) at Objects/call.c:230
#56156 0x00005555555bef65 in _PyObject_Call (tstate=0x7fffbc002c30, callable=callable@entry=0x7fffa2563ef0, args=args@entry=0x7ffff73e3050, kwargs=kwargs@entry=0x7fffa24d6a10) at Objects/call.c:265
#56157 0x00005555555befe3 in PyObject_Call (callable=callable@entry=0x7fffa2563ef0, args=args@entry=0x7ffff73e3050, kwargs=kwargs@entry=0x7fffa24d6a10) at Objects/call.c:292
--Type <RET> for more, q to quit, c to continue without paging--
#56158 0x000055555567ccea in do_call_core (tstate=tstate@entry=0x7fffbc002c30, func=func@entry=0x7fffa2563ef0, callargs=callargs@entry=0x7ffff73e3050, kwdict=kwdict@entry=0x7fffa24d6a10) at Python/ceval.c:5092
#56159 0x0000555555687562 in _PyEval_EvalFrameDefault (tstate=0x7fffbc002c30, f=0x7fffcc1e3990, throwflag=<optimized out>) at Python/ceval.c:3552
#56160 0x00005555555be8db in _PyEval_EvalFrame (throwflag=0, f=0x7fffcc1e3990, tstate=0x7fffbc002c30) at ./Include/internal/pycore_ceval.h:40
#56161 function_code_fastcall (tstate=0x7fffbc002c30, co=<optimized out>, args=0x7fffe013eec0, args@entry=0x7fffe013eeb8, nargs=1, globals=<optimized out>) at Objects/call.c:329
#56162 0x00005555555bf232 in _PyFunction_Vectorcall (func=<optimized out>, stack=0x7fffe013eeb8, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/call.c:366
#56163 0x000055555567caff in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=9223372036854775809, args=0x7fffe013eeb8, callable=0x7ffff5d2beb0, tstate=0x7fffbc002c30) at ./Include/cpython/abstract.h:118
#56164 PyObject_Vectorcall (kwnames=0x0, nargsf=9223372036854775809, args=0x7fffe013eeb8, callable=0x7ffff5d2beb0) at ./Include/cpython/abstract.h:127
#56165 call_function (tstate=tstate@entry=0x7fffbc002c30, pp_stack=pp_stack@entry=0x7fffa1328a60, oparg=oparg@entry=1, kwnames=kwnames@entry=0x0) at Python/ceval.c:5044
#56166 0x0000555555687052 in _PyEval_EvalFrameDefault (tstate=0x7fffbc002c30, f=0x7fffe013ed40, throwflag=<optimized out>) at Python/ceval.c:3476
#56167 0x00005555555be8db in _PyEval_EvalFrame (throwflag=0, f=0x7fffe013ed40, tstate=0x7fffbc002c30) at ./Include/internal/pycore_ceval.h:40
#56168 function_code_fastcall (tstate=0x7fffbc002c30, co=<optimized out>, args=0x7fffcc01b260, args@entry=0x7fffcc01b258, nargs=1, globals=<optimized out>) at Objects/call.c:329
#56169 0x00005555555bf232 in _PyFunction_Vectorcall (func=<optimized out>, stack=0x7fffcc01b258, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/call.c:366
#56170 0x000055555567caff in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=9223372036854775809, args=0x7fffcc01b258, callable=0x7ffff5d2e230, tstate=0x7fffbc002c30) at ./Include/cpython/abstract.h:118
#56171 PyObject_Vectorcall (kwnames=0x0, nargsf=9223372036854775809, args=0x7fffcc01b258, callable=0x7ffff5d2e230) at ./Include/cpython/abstract.h:127
#56172 call_function (tstate=tstate@entry=0x7fffbc002c30, pp_stack=pp_stack@entry=0x7fffa1328c80, oparg=oparg@entry=1, kwnames=kwnames@entry=0x0) at Python/ceval.c:5044
#56173 0x0000555555687052 in _PyEval_EvalFrameDefault (tstate=0x7fffbc002c30, f=0x7fffcc01b0e0, throwflag=<optimized out>) at Python/ceval.c:3476
#56174 0x00005555555be8db in _PyEval_EvalFrame (throwflag=0, f=0x7fffcc01b0e0, tstate=0x7fffbc002c30) at ./Include/internal/pycore_ceval.h:40
#56175 function_code_fastcall (tstate=0x7fffbc002c30, co=<optimized out>, args=0x7fffa1328dc0, args@entry=0x7fffa1328db8, nargs=1, globals=<optimized out>) at Objects/call.c:329
#56176 0x00005555555bf232 in _PyFunction_Vectorcall (func=<optimized out>, stack=0x7fffa1328db8, nargsf=<optimized out>, kwnames=<optimized out>) at Objects/call.c:366
#56177 0x0000555555783cdd in _PyObject_VectorcallTstate (kwnames=0x0, nargsf=1, args=0x7fffa1328db8, callable=0x7ffff5d2bf50, tstate=0x7fffbc002c30) at ./Include/cpython/abstract.h:118
#56178 method_vectorcall (method=<optimized out>, args=0x7ffff73e3068, nargsf=<optimized out>, kwnames=0x0) at Objects/classobject.c:61
#56179 0x00005555555bec20 in PyVectorcall_Call (callable=callable@entry=0x7fffa145bef0, tuple=tuple@entry=0x7ffff73e3050, kwargs=kwargs@entry=0x0) at Objects/call.c:230
#56180 0x00005555555bef65 in _PyObject_Call (tstate=0x7fffbc002c30, callable=0x7fffa145bef0, args=0x7ffff73e3050, kwargs=0x0) at Objects/call.c:265
#56181 0x00005555555befe3 in PyObject_Call (callable=<optimized out>, args=<optimized out>, kwargs=<optimized out>) at Objects/call.c:292
#56182 0x000055555574238b in t_bootstrap (boot_raw=boot_raw@entry=0x7fffa249c9a0) at ./Modules/_threadmodule.c:1040
#56183 0x00005555556da7ec in pythread_wrapper (arg=<optimized out>) at Python/thread_pthread.h:236
#56184 0x00007ffff7f91609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#56185 0x00007ffff7d5c133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

bt full:
(gdb) bt full
#0  _PyMem_DebugMalloc (ctx=0x555555b59380 <_PyMem_Debug+96>, nbytes=40) at Objects/obmalloc.c:2329
        __func__ = "_PyMem_DebugMalloc"
#1  0x00005555556029a6 in PyObject_Malloc (size=<optimized out>) at Objects/obmalloc.c:685
No locals.
#2  0x00005555556ed825 in _PyObject_GC_Alloc (use_calloc=use_calloc@entry=0, basicsize=<optimized out>) at Modules/gcmodule.c:2225
        tstate = <optimized out>
        gcstate = 0x555555baa118
        size = <optimized out>
        g = <optimized out>
        __PRETTY_FUNCTION__ = "_PyObject_GC_Alloc"
        op = <optimized out>
#3  0x00005555556ee7be in _PyObject_GC_Malloc (basicsize=<optimized out>) at Modules/gcmodule.c:2252
No locals.
#4  0x00005555556ee7eb in _PyObject_GC_New (tp=0x7ffff6e893c0) at Modules/gcmodule.c:2264
        op = <optimized out>

No syms for reloader:
objdump --syms /home/shako/REPOS/.../env/lib/python3.9/site-packages/reloadium/reloader.cpython-39-x86_64-linux-gnu.so

/home/shako/REPOS/.../env/lib/python3.9/site-packages/reloadium/reloader.cpython-39-x86_64-linux-gnu.so:     file format elf64-x86-64

SYMBOL TABLE:
no symbols

nm /home/shako/REPOS/.../env/lib/python3.9/site-packages/reloadium/reloader.cpython-39-x86_64-linux-gnu.so
nm: /home/shako/REPOS/.../env/lib/python3.9/site-packages/reloadium/reloader.cpython-39-x86_64-linux-gnu.so: no symbols

To Reproduce
Steps to reproduce the behavior:

enable python-devtools by following this:
https://python-devtools.helpmanual.io/usage/#manual-install
My sitecustomize.py path: /usr/local/lib/python3.9/sitecustomize.py

Fire up django with given version

add sum dummy simple view

add debug() statements as in:
https://python-devtools.helpmanual.io/usage/#debug

make it to reload

then remove debug() statements

make it to reload

expect segfault

Expected behavior
No segfault obviously
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Ubuntu
OS version: 20.04.4 LTS
Reloadium package version: 0.9.0
PyCharm plugin version: No plugin running from terminal
Editor: PyCharm
Run mode: run

Additional context
Add any other context about the problem here.

Possibly fixed in reloadium 0.9.1 (can't reproduce on python 3.9.7 from pyenv).
Could you confirm it's working for you as well?

There is no segfault but I got a new fail as:
Update Import: datetime(1)
Update Imported: Decimal(2)
Update Imported: Optional(3)
Update Import: pytz(6)
Update Imported: relativedelta(7)
Update Imported: apps(8)
Update Imported: settings(9)
Update Imported: GenericRelation(10)
Update Imported: ContentType(11)
Update Imported: ArrayField(12)
Update Imported: ObjectDoesNotExist(13)
Update Imported: PermissionDenied(13)
Update Imported: ValidationError(13)
Update Imported: MinValueValidator(14)
Update Imported: models(15)
Update Imported: Q(16)
Update Imported: Sum(16)
Update Imported: post_delete(17)
Update Imported: post_save(17)
Update Imported: pre_save(17)
Update Imported: atomic(18)
Update Imported: receiver(19)
Update Imported: get_object_or_404(20)
Update Imported: reverse(21)
Update Imported: timezone(22)
Update Imported: cached_property(23)
Update Imported: escape(24)
Update Imported: mark_safe(25)
Update Imported: slugify(26)
Update Imported: AUTO_INVOICE_HELP_TEXT(28-43)
Traceback (most recent call last):
ValueError: empty names on ImportFrom

Oops, it seems like you made a mistake.
Fix your changes and save to reload.

In fact I just add single space in the file and I am pretty sure there is no mistake there.

Interesting, definitely a bug. Can't reproduce it though.
Could you turning off caching (startup performance will suffer for sure) and try again?

@dkrystki Well I have no plugin installed. I run reloadium on the terminal.
Do you have a commandline flag for disabling the cache?

@ShahriyarR
Right, you have to set RW_CACHE=False enviromental flag then.

okay,
export RW_CACHE=False
reloadium run manage.py runserver <IP_ADDRESS>:8000 --noreload
The result of changes:
Reloadium experienced an error.
Please submit a github issue to let us know at https://github.com/reloadware/reloadium
Last changes could not be hot reloaded.
Please undo to continue
Reloadium experienced an error.
Please submit a github issue to let us know at https://github.com/reloadware/reloadium
Last changes could not be hot reloaded.
Please undo to continue
Update Module: xxxxx.schedule.views.service.rcrs_conjobs
Update Method: ServiceRcrCRUD.get_form(65-318)

Reloadium experienced an error.
Please submit a github issue to let us know at https://github.com/reloadware/reloadium
Last changes could not be hot reloaded.
Please undo to continue
Reloadium experienced an error.
Please submit a github issue to let us know at https://github.com/reloadware/reloadium
Last changes could not be hot reloaded.
Please undo to continue

Is get_form method a regular method (non classmethod etc)?

Ok I found the culprit, it's the cached_property causing this.
Will be fixed in the next release.

Fixed in reloadium 0.9.2 (PyCharm plugin 0.8.5)


Remove test informerResyncPeriod sleep & remove unused additionalSyncFuncs

I don't see why we have to sleep for informerResyncPeriod, since we already waited for all informers to be synced using WaitForCacheSync.
This sleep was introduced in this commit (no clear explanation was provided there): https://github.com/cert-manager/cert-manager/pull/2290/commits/fdce8c640620e61be9af143983ef45278004084f
Kind
/kind cleanup
Release Note
NONE

/test pull-cert-manager-master-make-test

/unhold


Add a preset for avalanche transceiver training zone and checkpoint

Description
Hi,
A new tag has been approved for avalanche transceiver training zone and checkpoint. Would it be possible to have a preset in the iD editor for this two objects ?
Thanks a lot !

Hey. Thanks for the suggestion.
Currently, I'm a bit hesitant to include this because the tag is only used 23 times in total and globally. This is likely simply because the tag is still new. I would be happy to reconsider adding this tag when usage numbers are substantially higher at some point in the future.


insert_many failing if the models iterator is empty

Description
I'm executing an insert_many operations where the iterator is the result of mapping/filtering.
Sometimes, as a result of the mapping/filtering, the resulting iterator may be empty.
In this case, the insert_many operation fails; I'd expect this to succeed and the database not being hit at all as there is nothing to do.
I increased the logs and I saw the following:
INSERT INTO
  "rules"
VALUES
  (DEFAULT) RETURNING "id"
..... Db { source: Query("error returned from database: null value in column \"id\" violates not-null constraint") }

the entity/struct is the following:

#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "rules")]
pub struct Model {
    #[sea_orm(primary_key, auto_increment = false)]
    pub id: Uuid,
    pub rule_set: String,
    pub created: NaiveDateTime,
    pub version: i16,
    #[sea_orm(column_type = "JsonBinary")]
    pub rule: Value,
}

I'm using yugabyte for this which should be using postgres.
Steps to Reproduce

Execute an insert_many operations where the iterator is empty
Confirm success/failure

Expected Behavior
I'd expect this to succeed and do nothing on the database.
Actual Behavior
Operation fails and complains about null  ìd` which is the primary key in my model.
Reproduces How Often
If the iterator is empty, always.
Versions
│   │   ├── sea-orm v0.9.0
│   │   │   ├── sea-orm-macros v0.9.0 (proc-macro)
│   │   │   ├── sea-query v0.26.0
│   │   │   │   ├── sea-query-derive v0.2.0 (proc-macro)
│   │   │   │   ├── sea-query-driver v0.2.0 (proc-macro)
│   │   │   ├── sea-strum v0.23.0
│   │   │   │   └── sea-strum_macros v0.23.0 (proc-macro)
│   │   ├── sea-orm-migration v0.9.0
│   │   │   ├── sea-orm v0.9.0 (*)
│   │   │   ├── sea-orm-cli v0.9.1
│   │   │   │   ├── sea-schema v0.9.2
│   │   │   │   │   ├── sea-query v0.26.0 (*)
│   │   │   │   │   └── sea-schema-derive v0.1.0 (proc-macro)
│   │   │   ├── sea-schema v0.9.2 (*)
│   │   ├── sea-schema v0.9.2 (*)

Additional Information

...as a workaround, I know I can collect() the iterator and check if it's empty, but if possible I'd like to avoid it as often the iterator is not empty and I don't want to have to collect always.

Hey @horacimacias, thanks for catching this "logical error". This has to be checked on run-time. Panicking is definitely not a viable option. Perhaps, throwing a DbErr::Exec("Insert many without any values").

I think insert many without values should be no-op. Or is it because that it might be valid due to INSERT DEFAULT?

Or is it because that it might be valid due to INSERT DEFAULT?

This is correct. Insert many without value will result in a insert query with default value. i.e.
INSERT INTO
  "rules"
VALUES
  (DEFAULT) RETURNING "id"

I'm not familiar at all with sea-orm's internals but, isn't there anything that can be checked (e.g. when we're building the sql statement to be sent to db or when we're processing the entity) to see if after consuming/traversing the iterator the entity wasn't added any items, and in this case bypass the operation completely?

I think no-op without throwing any error is bad. We should throw an error explicitly.

sorry, why would a no-op be a bad thing here?
Whenever we're looping over an Iterator that happens to be empty, the loop just does nothing.
    let items : Vec<String> = vec![];
    for i in items.iter(){
        println!("handling {i}");
    }

this will print nothing, and it's fine.
Why would throwing an error be any better here?
insert_many is taking an IntoIterator and it is receiving an empty but perfectly valid one.
When would we ever want insert_many to do any work if it has been passed an empty IntoIterator?
Also regarding INSERT DEFAULT, can somebody provide an example of when we would want to use this and which rust code would be using for this?
sorry if I'm missing some fundamentals of how sea-orm works.

To SeaORM's concern, insert many without a model should be no-op.
In SeaQuery, insert many with default could be a valid operation, but that should not affect the semantic here.

Hi, I've just got bitten by the described empty iterator handling, too.
My use-case for context:

Model:

#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "post_facebook_page")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub post_id: Uuid,
    #[sea_orm(primary_key)]
    pub facebook_page_id: String,
}

Failing code inside a transaction block:

entity::post_facebook_page::Entity::insert_many(facebook_pages_to_add).exec(db).await?;

The error:

Query Error: error returned from database: null value in column "post_id" of relation "post_facebook_page" violates not-null constraint

The code with the if workaround:

let facebook_pages_to_add = facebook_pages_to_add.collect::<Vec<_>>();
if not(facebook_pages_to_add.is_empty()) {
    entity::post_facebook_page::Entity::insert_many(facebook_pages_to_add).exec(db).await?;
}

The error mentioned above is surprising, breaks the Rust Model type because post_id is not Option<_> and crashes the app in runtime.
I would expect no DB request at all in the case of empty iterator.
Tested with sea-orm v. 0.9.2.

Thank you guys, very useful library :)

@billy1624 @tyt2y3 this issue is still in Triage so asking if any fix to this is decided.
This issue could be related #1407

I am more inclined to make it a no-op, but we may need to figure out if there is any edge case.


Add support for Rails 6.

I'm sorry, there is a lot of churn on this PR at the moment. It looks like we need dist: trusty, and your suggestion for removing the patch versions worked!
Yes, you are correct, this does not run against Rails 6 in CI. Though this update will enable us to use it in a Rails 6 app. I already have it working on my current project!

@parndt i can't merged this PR because it looks like it need signed commits. What should we do?

Well that's weird, not sure why that was required. Fixed!

@parndt  Sorry sir, when I upgrade refinery-authentication to refinery-authentication-devise. I have old data, please tell me "What to do with the database" :(

https://github.com/refinery/refinerycms-authentication-devise#installation

@parndt Why url changes when we upgrade. /refinery/login --> /refinery/users/login when login false

Here's the routes file: https://github.com/refinery/refinerycms-authentication-devise/blob/master/config/routes.rb
It's probably Devise doing that.

Can I change the routes as it was originally?

Please help me change :'(

We haven't changed the routes file in over 4 years. If behaviour has changed, it'll be something to do with Devise. I'd suggest reading through those docs 😄 good luck! I can't be any further help on this.


Prep for MEM on July 13, 2023

@Compton-NIST, feel free to edit and I will upload completed slides tomorrow morning when we are ready.

@Compton-NIST if I don't hear back by tomorrow morning I will assume we are good to go and pre-build the presentation. Thanks again.

@Compton-NIST if I don't hear back by tomorrow morning I will assume we are good to go and pre-build the presentation. Thanks again.

I think I'm good.


GH-43532: [Python] Remove usage of deprecated pkg_resources in setup.py

Rationale for this change
Closes #43532.

What changes are included in this PR?
Remove deprecated pkg_resources.resource_filename('numpy', 'core/include'), replace with numpy.get_include()

Are these changes tested?
Test by CI.

Are there any user-facing changes?
No

GitHub Issue: #43532

@jorisvandenbossche Could you take a look please,
I choose use importlib.resources() (1) instead of numpy.get_include() (2) because:
(2) need import numpy, then some current release test will fail (eg: ci/scripts/release_test.sh), we need to add numpy as a dependency for requirements-test
(1) failed Python 3.8 CI pipeline (importlib.resources.files available from >=3.9). But, this Python version planning was removed since Arrow v18.0.0, so I think (1) makes more sense. How do you think about it?

@tlm365 thanks for the PR!

I choose use importlib.resources() (1) instead of numpy.get_include() (2) because:
(2) need import numpy, then some current release test will fail (eg: ci/scripts/release_test.sh), we need to add numpy as a dependency for requirements-test

While using numpy.get_include() might indeed require some updates elsewhere, I think we should still try to take that route (it's the official public way provided by numpy to get that information, without needing to rely on internal details, e.g. that it is in core/include).
It might also be that you could move the import numpy inline to where it would be used, and then certain invocations of setup.py might still work without numpy installed.

@github-actions crossbow submit -g python -g wheel

I've rebased on git main.

@github-actions crossbow submit -g python -g wheel

CI failures are unrelated, I'll merge. Thanks a lot @tlm365 !


Get selected rows in controller.

How get data from selected rows, as a id by example?
I try data.$selected, but dont works.

Hello
You have an ng-click on your row?

I wanna get multi selected rows.
i have only one ng-click for all table.


[DRAFT] Ansi Escape Code Converter

Overview
This PR introduces ANSI escape code payloads and testing capabilities into the PyRIT framework. The changes allow for evaluating LLM behavior and potential vulnerabilities in downstream systems when handling ANSI escape sequences.
Work Completed
1. Payload Definitions

File: pyrit/common/ansi_payloads.py

Added LIVE_PAYLOADS and ESCAPED_PAYLOADS lists containing ANSI escape sequences for testing:

OSC 8 hyperlinks (https://learn.microsoft.com/en-us/security/ai-red-team/ and https://azure.github.io/PyRIT/).
Text formatting (color rendering, text hiding).
Malformed sequences to test parser resilience.

Payloads include both raw and escaped representations for flexibility.

2. Converter Implementation

File: pyrit/prompt_converter/ansi_all_in_one_converter.py

Implemented the AnsiAllInOneConverter:

Generates prompts that incorporate user inputs into scenarios involving ANSI escape sequences.
Covers both legitimate tasks (e.g., rendering green text) and testing-oriented tasks (e.g., detecting hidden text).
Supports scenarios like repeating payloads, unescaping strings, and explaining escape sequences.

Integrated tasks such as:

Printing hyperlinks.
Making the terminal bell ding.
Rendering colored terminal text.
Manipulating logs with cursor movement.

3. Documentation and Examples

File: doc/code/converters/ansi_all_in_one_converter.ipynb

Added a Jupyter Notebook demonstrating the AnsiAllInOneConverter:

Showcases both useful tasks (e.g., rendering green text) and testing scenarios (e.g., malformed sequences).
Includes example outputs.

Next Steps

Adding a scorer to evaluate the model’s output, focusing on the potential risk of generated ANSI escape codes.
Writing Test Cases
Extending Functionality (Feel Free to Share Your Wishes)

Related Issue
#577

This is the commit to review: d5809aa😄

Adding a scorer to evaluate the model’s output, focusing on the potential risk of generated ANSI escape codes.

Hello @rlundeen2,
Thank you for reviewing. I've uploaded the test. Please let me know if you'd like to add more cases or if you have any suggestions for improvement.
I originally planned to add a scorer to evaluate the model’s output for potential risks with ANSI escape codes. Since you mentioned you like the current size of the PR, we could handle that scorer addition in a separate PR, keeping this one focused on the tests. Let me know if that approach works for you.

Looks good! I like this size of PR, I think we should merge this before doing the rest of the attacks, but the strategy and PR are looking great. Thank you!!

Hello @rlundeen2,
Thank you for reviewing. I've uploaded the test. Please let me know if you'd like to add more cases or if you have any suggestions for improvement.
I originally planned to add a scorer to evaluate the model’s output for potential risks with ANSI escape codes. Since you mentioned you like the current size of the PR, we could handle that scorer addition in a separate PR, keeping this one focused on the tests. Let me know if that approach works for you.


bug/#1012 Add synchronization in MapTileCache.remove

Fix a race in MapTileCache (#1012).
This synchronizes a call to mCachedTiles.remove, the same way other calls are guarded.
As discussed on: https://github.com/osmdroid/osmdroid/issues/1012#issuecomment-391466140

I've added the testConcurrency test. You can easily test the problem by commenting out the synchronized block added in my first commit.


Support Call Hierarchy

Is your feature request related to a problem? Please describe.
Is there a way to support to call hierarchy feature like in https://github.com/ldelossa/litee-calltree.nvim?
Describe the solution you'd like
A floating UI to display the call hierarchy provided by LSP server
Something like this

nice feature. I like this. will implement one with a nice ui.


Add CNCF logo to homepage

cc // @dankohn

/hold
/assign @zacharysarah

@bobsky - let me know if you have any feedback

It is on all other project sites already. I like Bob's design better.
--
Dan Kohn<EMAIL_ADDRESS>Executive Director, Cloud Native Computing Foundation https://www.cncf.io
+1-415-233-1000 https://www.dankohn.com
On Tue, Jul 17, 2018 at 7:02 PM, bobsky<EMAIL_ADDRESS>wrote:

hope this is standardize/implemented across all projects. apart from k8s
specific wording that Dan mentioned it's ok from my view.
Here's an alternative design suggestion, shorten the text line to simply
use the CNCF acronym vs long form since that's already covered in the logo,
could look like it's repeating plus may have heard CNCF reference more
frequently.
see Kubernetes version mock-up here
[image: cncf footer logo]
https://user-images.githubusercontent.com/6249442/42849776-96055ff8-89d9-11e8-9f12-c72100e3a674.png
thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/website/pull/9375#issuecomment-405755516,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC8MBsn0lF6-TPpjk4126gxjXg2aJcVJks5uHm0fgaJpZM4VBmO6
.

/assign @chenopis
/hold cancel

LGTM

/lgtm
/approve