[BUG]: Unable to serialize unknown type: <class 'beanie.odm.fields.BackLink'>

Unable to return response model containing BackLink
Getting pydantic serialization error when tying to return model containing BackLink
I have following code
from typing import List
from fastapi import status
from beanie import Document, BackLink, Link, WriteRules
from pydantic import Field

class House(Document):
    name: str
    owner: Link["Person"]

class Person(Document):
    name: str
    house: BackLink[House] = Field(original_field="owner")

@app.post(
    "/house",
    response_model=House,
    status_code=status.HTTP_201_CREATED,
)
async def create_house(
    house: House = Body(...)
):
    person = Person(name="Batman", house=house)
    house.person = person
    await house.save(link_rule=WriteRules.WRITE)
    if house:
        await house.sync()
        return house

Expected behavior
After calling post api with following request body
    {
        "name": "Bat Cave"
    }

the response should have been
    {
        "id": "1",
        "name": "Bat Cave",
        "owner": {
            "name": "Batman",
            "house": "1"
        }
    }

instead it gives me following error while serializing owner object
Unable to serialize unknown type: <class 'beanie.odm.fields.BackLink'>

Somebody please help :_)

@advayumare have you tried  this? since your example will only work for pydantic v1
class Person(Document):
    name: str
    house: BackLink[House] = Field(json_schema_extra={"original_field": "owner"})

@07pepa
In my example there is pydantic 2.7
class Feature(Document, FeatureSchema):
    id: PydanticObjectId = Field(default_factory=PydanticObjectId, alias='_id', serialization_alias='id')

class FeatureWithoutGeometry(Feature):
    geometry: SkipJsonSchema[Optional[Geometry]] = Field(default=None, exclude=True)
    bugreports: Optional[List[BackLink[Bugreport]]] = Field(default=list, json_schema_extra={"original_field": "feature"})

class Bugreport(Document, BugreportSchema):
    id: PydanticObjectId = Field(default_factory=PydanticObjectId, alias='_id', serialization_alias='id')
    feature: Link["FeatureWithoutGeometry"]

features = await Feature.find(
    projection_model=FeatureWithoutGeometry,
    fetch_links=True,
).to_list()


Missing hash key: "ex" (KeyError)

Missing hash key: "ex" (KeyError)
  from Hash(String, Crystal::CodeGenVisitor::LLVMVar)+@Hash(K, V)#[]<String>:Crystal::CodeGenVisitor::LLVMVar
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::CodeGenVisitor#codegen_fun<String, Crystal::Def+, Crystal::Type+, Bool, Crystal::CodeGenVisitor::ModuleInfo, Bool, Bool>:LLVM::Function
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::CodeGenVisitor#visit<Crystal::Call>:Bool
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::CodeGenVisitor#codegen_fun<String, Crystal::Def+, Crystal::Type+, Bool, Crystal::CodeGenVisitor::ModuleInfo, Bool, Bool>:LLVM::Function
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::CodeGenVisitor#visit<Crystal::Call>:Bool
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::ASTNode+@Crystal::ASTNode#accept<Crystal::CodeGenVisitor>:Nil
  from Crystal::Compiler#codegen<Crystal::Program, Crystal::ASTNode+, Array(Crystal::Compiler::Source), String>:(Tuple(Array(Crystal::Compiler::CompilationUnit), Array(String)) | Nil)
  from Crystal::Compiler#compile<Array(Crystal::Compiler::Source), String>:Crystal::Compiler::Result
  from Crystal::Command#run_command<Bool>:Nil
  from Crystal::Command#run:(Bool | Crystal::Compiler::Result | Nil)
  from main
Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues

# TODO: Write documentation for `Dwoom::Account::Backend::User`
require "kemal"
require "crest"
require "clear"
require "./models/users.cr"
require "./models/phone_confirmations.cr"
require "./models/email_confirmations.cr"
require "./locales"

module Dwoom::Account::Backend::User
  extend self
  VERSION = "0.1.0"

  Clear::SQL.init("default", "postgres://**********")
  Clear::SQL.add_connection("read-only", "postgres://**********")

  SESSION_MICROSERVICE_URL = "http://<IP_ADDRESS>:3000"
  EMAIL_MICROSERVICE_URL   = "http://<IP_ADDRESS>:3002"
  SMS_MICROSERVICE_URL     = "http://<IP_ADDRESS>:3001"

  post "/user/get/informations/for/account/page/generalinformations" do |env|
    begin
      response = Crest.post("#{SESSION_MICROSERVICE_URL}/session/get/user_id",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    user_id = JSON.parse(response.body)["user_id"]
    begin
      user = Clear::SQL.select.use_connection("read-only").from("users").where({id: user_id}).first.as(Hash)
    rescue
      halt env, status_code: 500, response: "ERR #DABU-01."
    end
    env.response.content_type = "application/json"
    {"username"     => user["username"],
     "email"        => user["email"],
     "first_name"   => user["first_name"],
     "last_name"    => user["last_name"],
     "dob"          => user["dob"],
     "sexe"         => user["sexe"],
     "country"      => user["country"],
     "language"     => user["language"],
     "phone_number" => user["phone_number"],
     "accept_news"  => user["accept_news"],
    }.to_json
  end

  options "/user/get/informations/for/account/page/generalinformations" do |env|
  end

  post "/user/change/informations/from/account/page/generalinformations" do |env|
    begin
      response = Crest.post("#{SESSION_MICROSERVICE_URL}/session/get/user_id",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    begin
      email = env.params.json["email"].to_s
      username = env.params.json["username"].to_s
      firstname = env.params.json["firstname"].to_s
      lastname = env.params.json["lastname"].to_s
      dob = env.params.json["dob"].as(Array)
      sexe = env.params.json["sexe"].to_s
      country = env.params.json["country"].to_s
      language = env.params.json["language"].to_s
      phonenumber = env.params.json["phonenumber"].to_s
      acceptnews = env.params.json["acceptnews"].as(Bool)
    rescue
      halt env, status_code: 400, response: "Missing parameter(s)."
    end
    user_id = JSON.parse(response.body)["user_id"]
    begin
      user = ::User.query.find! { id == user_id }
    rescue
      halt env, status_code: 500, response: "ERR #DABU-01."
    end
    begin
      year = dob[2].as_i
      month = dob[1].as_i
      day = dob[0].as_i
      puts year
      puts month
      puts day
    rescue
      halt env, status_code: 400, response: "Missing date."
    end

    user.email = email
    user.username = username
    user.first_name = firstname
    user.last_name = lastname
    user.dob = Time.new(day: day, month: month, year: year)
    user.sexe = sexe
    user.country = country
    user.language = language
    user.phone_number = phonenumber
    user.accept_news = acceptnews

    begin
      user.save!
    rescue
      halt env, status_code: 500, response: "ERR #DABU-02."
    end
  end

  options "/user/change/informations/from/account/page/generalinformations" do |env|
  end

  post "/user/send/email/from/account/page/generalinformations/as/confirm_mail" do |env|
    begin
      Crest.post("#{SESSION_MICROSERVICE_URL}/session/verify",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    begin
      email = env.params.json["email"].to_s
      language = env.params.json["language"].to_s
    rescue
      halt env, status_code: 400, response: "Missing parameter(s)."
    end

    confirmation_code = "#{Random.rand(999)} #{Random.rand(999)} #{Random.rand(999)}"
    confirmation_code_db = confirmation_code.gsub(" ", "")

    email_confirmation = EmailConfirmation.new
    email_confirmation.email = email
    email_confirmation.confirmation_code = confirmation_code_db
    email_confirmation.id = (Random::Secure.hex).as(String)

    begin
      email_confirmation.save!
    rescue
      halt env, status_code: 500, response: "ERR #DABU-03."
    end

    begin
      Crest.post("#{EMAIL_MICROSERVICE_URL}/send/user/email_change_confirmation",
        headers: {"Content-Type" => "application/json"},
        form: {
          "to"                => email,
          "language"          => language,
          "confirmation_code" => confirmation_code,
        }.to_json
      )
    rescue
      halt env, status_code: 500, response: "Couldn't send the email."
    end

    env.response.content_type = "application/json"
    {"email_confirmation_id": email_confirmation.id}.to_json
  end

  options "/user/send/email/from/account/page/generalinformations/as/confirm_mail" do |env|
  end

  post "/user/send/phone/from/account/page/generalinformations/as/confirm_phone" do |env|
    begin
      Crest.post("#{SESSION_MICROSERVICE_URL}/session/verify",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    post "/signup/phone/send" do |env|
      begin
        number = env.params.json["phonenumber"].to_s
        language = env.params.json["language"].to_s
      rescue
        halt env, status_code: 400, response: "Missing parameter."
      end

      phone_confirmation = PhoneConfirmation.new
      phone_confirmation.phone_number = number
      phone_confirmation.confirmation_code = Random.rand(999999)
      phone_confirmation.id = (Random::Secure.hex).as(String)

      begin
        phone_confirmation.save!
      rescue ex
        halt env, status_code: 500, response: "ERR #DABA-03."
      end

      begin
        body = translate("sms.new_phone.confirmation_code", language, phone_confirmation.confirmation_code)
      rescue
        halt env, status_code: 500, response: "ERR #DABA-04."
      end

      begin
        Crest.post("#{SMS_MICROSERVICE_URL}/send",
          headers: {"Content-Type" => "application/json"},
          form: {
            "to"   => number,
            "body" => body,
          }.to_json
        )
      rescue
        halt env, status_code: 500, response: "Couldn't send the SMS."
      end
      env.response.content_type = "application/json"
      {"phone_confirmation_id": phone_confirmation.id}.to_json
    end
  end

  options "/user/send/phone/from/account/page/generalinformations/as/confirm_phone" do |env|
  end

  post "/user/confirm/new_email" do |env|
    begin
      response = Crest.post("#{SESSION_MICROSERVICE_URL}/session/get/user_id",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    begin
      confirmation_email_id = env.params.json["confirmation_email_id"].to_s
      confirmation_email_confirmation_code = env.params.json["confirmation_email_confirmation_code"].to_s
    rescue
      halt env, status_code: 400, response: "Missing parameter(s)."
    end
    confirmation_email_confirmation_code = confirmation_email_confirmation_code.gsub(" ", "")
    if !Clear::SQL.select.use_connection("read-only").from("email_confirmations").fetch { |u| exist = (u["id"] == confirmation_email_id) && (u["confirmation_code"] == confirmation_email_confirmation_code) }
      halt env, status_code: 401, response: "Wrong confirmation code."
    end
  end

  options "/user/confirm/new_email" do |env|
  end

  post "/user/confirm/new_phone" do |env|
    begin
      response = Crest.post("#{SESSION_MICROSERVICE_URL}/session/get/user_id",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    begin
      id = env.params.json["id"].to_s
      confirmation_code = env.params.json["confirmation_code"].to_s
    rescue
      halt env, status_code: 400, response: "Missing parameters."
    end

    if !Clear::SQL.select.use_connection("read-only").from("phone_confirmations").fetch { |u| exist = (u["id"] == id) && (u["confirmation_code"] == confirmation_code) }
      halt env, status_code: 401, response: "Wrong confirmation code."
    end
  end

  options "/user/confirm/new_phone" do |env|
  end

  before_all do |env|
    begin
      origin = env.request.headers["origin"]
    rescue
      halt env, status_code: 400, response: "Missing origin."
    end
    env.response.headers["Access-Control-Allow-Methods"] = "HEAD,GET,PUT,POST,DELETE,OPTIONS"
    env.response.headers["Access-Control-Allow-Headers"] = "Content-Type, Accept, Origin, Authorization, X-Requested-With, X-HTTP-Method-Override"
    env.response.headers["Access-Control-Allow-Credentials"] = "true"
    case origin
    when "http://dev.dwoom"
      env.response.headers["Access-Control-Allow-Origin"] = "http://dev.dwoom"
    when "https://account.dwoom.com"
      env.response.headers["Access-Control-Allow-Origin"] = "https://account.dwoom.com"
    else
      halt env, status_code: 401, response: "Prohibited origin"
    end
  end

  Kemal.config.env = "development" # use "production" for production.
  Kemal.config.port = 3006
  Kemal.config.powered_by_header = false
  Kemal.run
end

Wasn't a bug, I forgot an "end".
But as the compiler told me Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues
I didn't check further.

well, you shouldn't get this kind of errors when you forget an end, it is  worth investigating I think

The issue involved this code
post "/user/send/phone/from/account/page/generalinformations/as/confirm_phone" do |env|
    begin
      Crest.post("#{SESSION_MICROSERVICE_URL}/session/verify",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
    end
    post "/signup/phone/send" do |env|
      begin
        number = env.params.json["phonenumber"].to_s
        language = env.params.json["language"].to_s
      rescue
        halt env, status_code: 400, response: "Missing parameter."
      end

      phone_confirmation = PhoneConfirmation.new
      phone_confirmation.phone_number = number
      phone_confirmation.confirmation_code = Random.rand(999999)
      phone_confirmation.id = (Random::Secure.hex).as(String)

      begin
        phone_confirmation.save!
      rescue ex
        halt env, status_code: 500, response: "ERR #DABA-03."
      end

      begin
        body = translate("sms.new_phone.confirmation_code", language, phone_confirmation.confirmation_code)
      rescue
        halt env, status_code: 500, response: "ERR #DABA-04."
      end

      begin
        Crest.post("#{SMS_MICROSERVICE_URL}/send",
          headers: {"Content-Type" => "application/json"},
          form: {
            "to"   => number,
            "body" => body,
          }.to_json
        )
      rescue
        halt env, status_code: 500, response: "Couldn't send the SMS."
      end
      env.response.content_type = "application/json"
      {"phone_confirmation_id": phone_confirmation.id}.to_json
    end
  end

I created a route within another route because I forgot an end.
post "/user/send/phone/from/account/page/generalinformations/as/confirm_phone" do |env|
    begin
      Crest.post("#{SESSION_MICROSERVICE_URL}/session/verify",
        headers: {"origin" => env.request.headers["origin"]},
        cookies: {"Session" => env.request.cookies["Session"].value}
      )
    rescue ex : Crest::RequestFailed
      halt env, status_code: 401, response: "Unauthorized."
     Otherwise I'd suggest we close this for now and let it resurface if still an issue.

Closing for lack of reproducibility.

Closing for lack of reproducibility.


'module' object has no attribute 'client'

Sorry for what is probably a silly mistake. Getting an attribute error (AttributeError: 'module' object has no attribute 'client') at the line: flow = dropbox.client.DropboxOAuth2FlowNoRedirect(APP_KEY, APP_SECRET)
First time doing this, so I used the APP_KEY and APP_SECRET from a randomly-named app I created ("in development" status). I already installed dropbox via pip. No other dropbox.py or anything like that sitting around. What's going on?

After browsing more, I'm guessing this is related to the API change?

I have the same issue as well.
Traceback (most recent call last):
  File "restore.py", line 114, in <module>
    main()
  File "restore.py", line 109, in main
    client = login('token.dat')
  File "restore.py", line 42, in login
    access_token = authorize()
  File "restore.py", line 23, in authorize
    flow = dropbox.client.DropboxOAuth2FlowNoRedirect(APP_KEY, APP_SECRET)
AttributeError: 'module' object has no attribute 'client'

Discovered the problem was related to the API change. There's a partial fix from here: https://github.com/clark800/dropbox-restore/issues/40


ci: release note form

PR Checklist
Please check if your PR fulfills the following requirements:

[x] Tests for the changes have been added (for bugfixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes)
[ ] Build related changes
[x] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Codecov Report
Patch and project coverage have no change.

Comparison is base (759b58e) 97.50% compared to head (f76e8bb) 97.50%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #125   +/-   ##
=======================================
  Coverage   97.50%   97.50%
=======================================
  Files          11       11
  Lines         160      160
  Branches       19       19
=======================================
  Hits          156      156
  Misses          4        4

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Datepicker: relative prop is not available for React

Info
React Datepicker component does not have the relative property
Acceptance Criteria

React Datepicker component can use the relative property

@ArakTaiRoth Review Ali Hakak's issue and code to replicate

:tada: This issue has been resolved in version 5.0.0-alpha.4 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 1.17.0-alpha.105 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 3.0.0-alpha.6 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


tfsec: Add Version 0.63.0

What type of Apps related PR is this? (check all applicable)

[x] ✨ Add Manifest
[ ] ♻ Refactor
[ ] 🐛 Bug Fix
[ ] 👷 Optimization
[ ] 🚩 Other

Description

Add Manifest for TFSec which ia a static analysis for terraform.
note : I had to fixed the version to 0.63.0 since the windows version is not available for the last 0.63.1... So in the manifest it's missing the autoupdate and checkversion section... Once it resolved we should re-add these sections
Related Tickets & Documents

None
Did you verify the followings

Add/Modify a description in the manifest?

[x] 👍 yes
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

Check URLs?

[x] 👍 yes
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

Update to the latest version?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed Because there an issue with 0.63.1 for windows, it doesn't exist 😒

Update Hashes?

[x] 👍 yes
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

Format the json manifest?

[x] 👍 yes
[ ] 🙋 yes, but I need help
[ ] 🙅 no, because they aren't needed

Did you identify extra steps
Notes in the manifest?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed

Application Dependencies?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed

Application Suggestions?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed

Pre-installation steps to perform?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed

Post-installation steps to perform?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed

File persistence to perform?

[ ] 👍 yes
[ ] 🙋 yes, but I need help
[x] 🙅 no, because they aren't needed

[optional] What gif/emoji best describes this PR or how it makes you feel?

:mag: :bug: :punch: :wave: :rotating_light:

All changes look good.
Wait for review from human collaborators.
tfsec

[x] Description
[x] License
[x] Hashes


🐛 BUG: Durable Objects: ws argument in webSocketClose() handler is invalid

Which Cloudflare product(s) does this pertain to?
Other
What version(s) of the tool(s) are you using?
wrangler@npm:3.60.3,  @cloudflare/next-on-pages@npm:1.11.3
What version of Node are you using?
20.13.1
What operating system and version are you using?
MacOS
Describe the Bug
Observed behavior
In development when I log the ws passed to webSocketClose the result is:
WebSocket { extensions: '', protocol: '', url: null, readyState: 2

Expected behavior
The ws passed to the close handler to have the correct url.
Steps to reproduce
  async webSocketClose(ws: WebSocket) {
    console.log(ws);
  }

At this stage it's unclear to me whether this is also an issue when in prod (i.e. running on cloudflare)

I'm inclined to agree with @threepointone. It's not really clear when we would set it on the server side with new WebSocketPair() and the URL you use to connect to a Durable Object doesn't need to be the same as the URL used to connect to the Worker. Using .serializeAttachment() sounds like the right approach here.

Thank you both for your clear responses. In my case I was able to retrieve the data I needed from the associated websocket via getTags().
The serializeAttachment() also sounds like a great approach if i didn't already have the required data in a tag. Thanks!


OWASP alert for CVE-2014-1266

Query/Question
We are using the azure SDK for Java  and are getting OWASP alerts for io.netty : netty-handler:4.1.100.final that is used by com.azure.spring : spring-cloud-azure-starter-active-directory:4.6.0 related to CVE-2014-1266.
OWASP provides recommendation how to make proper security through configure the SSLEngine (see SSLParameters.setEndpointIdentificationAlgorithm(String))  by netty provider's link
https://netty.io/4.1/api/io/netty/handler/ssl/SslContext.html#newHandler-io.netty.buffer.ByteBufAllocator-java.util.concurrent.Executor-
Becouse the underlying generated SSLEngine won't have hostname verification enabled by default.
Why is this not a Bug or a feature Request?
Could you provide information does spring-cloud-azure-starter-active-directory create SSLHandler and how does it configure SSLEngine?
Setup (please complete the following information if applicable):

OS: Windows
IDE: IntelliJ IDEA
Library/Libraries: com.azure.spring : spring-cloud-azure-starter-active-directory : 4.6.0

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

[ ] Query Added
[ ] Setup information Added

Hi @iussov thank you for reaching out.  @stliu on the Spring team will follow up.
Please note that open source projects on GitHub generally have a SECURITY.md in the root of their repo https://github.com/Azure/azure-sdk-for-java/blob/main/SECURITY.md#reporting-security-issues with reporting and bug bounty instructions.  It's always best to check for that in any project on github.

Hi @iussov ,Please see this comment:
https://github.com/Azure/azure-sdk-for-java/issues/37152#issuecomment-1759921522
we do not use Netty directly but rather use it through Reactor Netty which has hostname verification enabled by default, and we do not modify that behaviour.


Animal sample table options

Summary Change Description

modified base.html to use CDN links for Bootstrap css and JS, upgraded to version 5.0.2 from 5.0.1. Included css and JavaScript required by Bootstrap Table plugin.

Added table options (search, filter columns, full screen, show/hide/columns, export table to file) to Animal and Sample List.

Affected Issue Numbers

Resolves #216
partly addressed  #214  and #215

Code Review Notes
Only selected a few Bootstrap Table options and applied to animal and sample lists. Need careful review before making similar changed for other object lists.
Checklist

[ ] All issue requirements satisfied (or no linked issues)
[ ] Linting passes.
[x] Migrations created & committed (or no model changes)
[x] Tests implemented (or no code changes)
[x] All tests pass

Pushed a commit this morning. Moved search box to left side of the table, made every column sortable, and removed json type for file download.

@lparsons Rob hasn't reviewed this PR yet, maybe we merge your #220 into my romote branch first, I then ask re-review. You do the merge or you want me to do it?


Enable lazy loading to improve website performance

Lazy loading is a technique that can be used to improve the performance of a website by delaying the loading of images and other resources until they are needed. This can help to reduce the initial load time of a page, which can improve the user experience and make the website more responsive.
The benefits of lazy loading include:

Reduced initial load time

Improved user experience

More responsive website

Increased SEO ranking

Assigned this issue to you. Kindly complete the work within 10 days, go through the readme and contributing.md for successful merge. All the best to your work Manik... !!!

@raj03kumar It's been two weeks since the issue has been assigned but the issue is not resolved. If he is not working then you can assign it to me under GSSOC'23 so that I can start working on it.

@raj03kumar i have already made a PR for this issue. Kindly please check PR'S first


Allow at least 5 seconds between metadata requests

In order to avoid pummeling the brokers with metadata requests in cases where e.g. a partition is unavailable and the client is waiting for the cluster to figure things out, we add a minimum interval that has to pass between two metadata requests.

:+1:

Darn, I'll have to make it configurable, or the tests will take forever...

Hmm. Having to make the interval configurable just in order to make the tests pass seems wrong to me. Maybe I'll switch to a rate limiting approach, allowing up to n requests before throttling.

seems like a good start, you may want to consider certain conditions that trigger an immediate refresh tho.  Notably the NotLeaderForPartition exception, which will happen after a leader re-election.

Would those also occur when the broker has never been leader of that partition, or would that return UnknownTopicOrPartition?


Wording in "Why you should use semicolons" can be improved

The wording in "Why you should use semicolons" section is weird. The section, introduced in 7488b34 after issue #112, was based on a Tweet and kept the almost same wording. In the other hand the section title is not consistent with the rest of text: while other titles are simple assertions, such as "true is false" or "function is not a function", or questions such as "Is this multiple inheritance?", the title of this one is an recommendation.
Also, why the "standard JavaScript" wording? It's way too similar to the JavaScript Standard Style which avoids using semicolons. I see that it comes from the Tweet, but it could be better worded to avoid this reference. In fact, if it's a reference to this style guide, then it's a bad example as this guide explicitly says would should use semicolons when starting lines with [ and lists other cases where it's needed.
I like Standard because it makes programmers think about the actual JavaScript issue: automatic semicolon insertion. Teaching "you should use semicolons" for me is just a workaround for that and which may fail if not learned properly. If someone thinks "I will just use semicolons like in other languages" then it will lead to some pitfalls like adding a line break after a return: works in PHP, works in C, not in JavaScript.
The wording can be improved. I suggest to change the title to something similar to "Semicolons are automatically added, right?" or "Are semicolons optional?" or "Automatically added semicolons", something to fit the style used in other examples. The current example that shows a situation where a semicolon was expected to be added (by someone which don't knows ASI) can be kept, but would be nice if an example where ASI adds a semicolon where it's not expected was added, maybe this one:
// Returns 4 in PHP, returns undefined in JavaScript due to ASI
function getRandomNumber () {
  return // chosen by fair dice roll.
    4; // guaranteed to be random.
}

Of course a linter would detect the early return, but there isn't a single example in the text that recommends using one.
Issue written after this comment.

Please open a PR with your suggestions.


Running zero shot for new classes

Could you please include a zeroshot script to run the inference for base2new class setting ?

@Bala93 do you have this script now?


Deliver KtPW, KX and Cloud Query Tools

Problem description
This is an issue for actively tracking the work streams on KtPW, KX, and the Cloud Query Tooling.
Expect the lists to evolve and for separate issues to stem from each list to properly track them in milestones.

KtPW repo: https://github.com/pulumi/docs
KX repo: https://github.com/pulumi/kx
Ops: Defer to @hausdorff

Outline
(The anchor links don't seem to work in GH issues.)

1) KtPW

Code:

General
Cloud / IaaS Stacks

Identity
Networking
Storage

Kubernetes Stacks

Cluster Configuration
Cluster Services
App Services
Slack Bot App

Docs:

Introduction
Cloud / IaaS Stacks

Identity
Networking
Storage

Kubernetes Stacks

Cluster Configuration
Cluster Services
App Services
Slack Bot App

2) KX
3) Cloud Query Tooling

1) KtPW
Code:
General

[x] Move the KtPW repo into this pulumi/docs repo. @metral

Cloud / IaaS Stacks
Identity
AWS

[ ] Integrate KtPW: AWS Identity code into the stacks below. @metral
[ ] Create Pulumi unit tests / gated deployments for AWS.Identity @lblackstone

GCP

[ ] Create Pulumi code for GCP.Identity (TBD by time available)
[ ] Create Pulumi unit tests / gated deployments for GCP.Identity (TBD by time available)

Azure

[ ] Create Pulumi code for Azure.Identity (TBD by time available)
[ ] Create Pulumi unit tests / gated deployments for Identity.Azure (TBD by time available)

Networking
AWS

[ ] Create Pulumi code provisioning networking for AWS.Networking @metral
[ ] Create Pulumi unit tests / gated deployments for AWS.Networking @lblackstone

GCP

[ ] Create Pulumi code for GCP.Networking (TBD by time available)
[ ] Create Pulumi unit tests / gated deployments for GCP.Networking (TBD by time available)

Azure

[ ] Create Pulumi code for Azure.Networking (TBD by time available)
[ ] Create Pulumi unit tests / gated deployments for Azure.Networking (TBD by time available)

Storage
AWS

[ ] Create Pulumi code provisioning storage for AWS.Storage: Aurora DBaaS @metral @lblackstone
[ ] Create Pulumi unit tests / gated deployments for AWS.Storage Storage @lblackstone

GCP

[ ] Create Pulumi code provisioning storage for GCP.Storage: Cloud SQL @metral @lblackstone (TBD by time available)
[ ] Create Pulumi unit tests / gated deployments for GCP.Storage Storage (TBD by time available)

Azure

[ ] Create Pulumi unit tests / gated deployments for Azure.Storage (TBD by time available)
[ ] Create Pulumi code provisioning storage for Azure.Storage: CosmosDB @metral @lblackstone (TBD by time available)

Existing work:

AWS RDS (Aurora or Postgres)
Azure Cosmos DB

Kubernetes Stacks
Cluster Configuration
Code focused on show casing production settings and configuration for k8s cluster-based services.

[ ] Merge best of EKS cluster stacks in KtPW (KtPW: Provisioning Environments) and KX examples (KX: Multi-stack architecture). @metral
[ ] Create stack using Private Networking @metral
[ ] Create stack using Private Control Plane / Endpoint @metral
[ ] Create stack using proper Cluster Configuration @metral
[ ] Create stack using NodeGroups @metral
[ ] Create stack using RBAC @metral
[ ] Create stack using Namespaces @metral
[ ] Create stack using Default Namespace Quotas (TBD by time available) @metral
[ ] Create stack using Default PodSecurityPolicies (TBD by time available) @metral

Cluster Services
Code focused on show casing production settings and configuration for k8s cluster-based services.

[ ] Logs: fluentd-cloudwatch

Existing work: Mike has a native Pulumi port in a downstream repo that is better than the current Helm implementation in KX.

[ ] Pod RBAC: kube2iam

Existing work: Mike has a native Pulumi port in a downstream repo that is better than the current Helm implementation in KX.

App Services
Code focused on show casing production settings and configuration for k8s app-based services.

[ ] Ingress Controller: nginx-ingress-controller @metral

Existing work

[ ] DNS: external-dns @metral

Existing work

[ ] TLS Certificates: cert-manager @metral

Slack Bot App
Code focused on show casing production settings and configuration for k8s resources to compose the Slack Bot App.

[ ] Create SlackBot Example App @lblackstone @hausdorff (alexbot code?)

Uses k8s resources: Deployment, Service, ConfigMaps, Secrets, Ingress

[ ] Create / Use KX.ServiceDeployment
[ ] Create / Use KX.DockerSecret for private registry container image

Docs:
Crosswalk for Kubernetes - Running Kubernetes in Production in the style of Crosswalk for AWS.
This work requires that the KtPW consolidation work above in KtPW.General is completed before merging PRs, as to get the location of code & docs situated first.
Introduction

[ ] Review content and narrative in KtPW README @spara @hausdorff
[ ] Review content and narrative in KtPW Architecture @metral

Cloud / IaaS Stacks
Identity
Content focused on creating new IAM or using existing IAM.

[ ] Review content and narrative in Identity README @spara @hausdorff
[ ] Review content and narrative in AWS.Identity README @spara @hausdorff
[ ] Create GCP.Identity README @spara @hausdorff  (TBD by time available)
[ ] Create Azure.Identity README @spara @hausdorff (TBD by time available)

Networking
Content focused on creating new VPC/Subnets etc. or using existing VPC/Subnets etc.

[ ] Create Networking README @spara @hausdorff
[ ] Create AWS.Networking README@spara @hausdorff
[ ] Create GCP.Networking README @spara @hausdorff  (TBD by time available)
[ ] Create Azure.Networking README @spara @hausdorff (TBD by time available)

Existing work to leverage:

AWS Networking (Outdated but a start nevertheless)

Storage
Content focused on how to set up a DBaaS in each provider.

[ ] Create Storage README @spara @hausdorff
[ ] Create AWS.Storage README @spara @hausdorff
[ ] Create GCP.Storage README @spara @hausdorff  (TBD by time available)
[ ] Create Azure.Storage README @spara @hausdorff (TBD by time available)

Kubernetes Stacks
Cluster Configuration
Content focused on show casing production settings and configuration for k8s clusters.

[ ] Create Cluster Configuration README @spara @hausdorff
[ ] Create Cluster_Configuration.AWS README @spara @hausdorff
[ ] Create Cluster_Configuration.GCP README @spara @hausdorff (TBD by time available)
[ ] Create Cluster_Configuration.Azure README @spara @hausdorff (TBD by time available)

Config used:

Private Networking
Private Control Plane / Endpoint
NodeGroups
RBAC
Namespaces
Default Namespace Quotas (TBD)
Default PodSecurityPolicies (TBD)

Cluster Services
Content focused on show casing production settings and configuration for k8s cluster-based services.
Cluster Services Used:

fluentd-cloudwatch for API and Worker Node Logs

kube2iam for fluent-cloudwatch Pod IAM

[ ] Create Cluster Services README @spara @hausdorff

App Services
Content focused on show casing production settings and configuration for k8s app-based services.
Cluster Services Used:

nginx-ingress-controller for Ingress management

external-dns for DNS managment

cert-manager for LetsEncrypt TLS certificates

[ ] Create App Services README @spara @hausdorff

Slack Bot App
Content focused on show casing production settings and configuration for k8s and KX resources used to compose the Slack Bot App.

[ ] SlackBot Example App @lblackstone @hausdorff (alexbot code)

Kubernetes resources used: Deployment, Service, ConfigMaps, Secrets, Ingress

[ ] KX objects used e.g. KX.ServiceDeployment, KX.DockerSecret)

2) KX
Code to house a small, experimental library of helper functions and abstractions extracted and used in KtPW.

[ ] Remove recent stack examples out of the KX repo, and place into proper stacks above in KtPW's new home in pulumi/docs. @metral
[ ] Consider removing the PodBuilder code out of the SDK as we have not quite landed on a consensus of what this should look like, and given the shortened timeline over the next few weeks.

Helpers To Consider Building

[ ] DockerSecret
[ ] ServiceDeployment
[ ] PodBuilder or DeploymentBuilder (TBD)
Recent thoughts and feedback suggest PodBuilder may be too low of an atomic unit, and we should consider facilitating and optimizing resources directly such as a DeploymentBuilder.

3) Cloud Query Tooling
Code & docs on ops tools to query cloud & k8s for debugging, insight, and auditing.

[ ]

cc @lukehoban @joeduffy @hausdorff @lblackstone @spara

Thanks!
I assume the Kx work will happen in another repo?
Same for the query tools?

I assume the Kx work will happen in another repo?

https://github.com/pulumi/kx

Same for the query tools?

cc @hausdorff ^

@metral, do you want to add a task to re-enable checking for broken links to https://github.com/pulumi/kubernetes-the-prod-way/? Follow-up to #1833

Will do @justinvp. Thank you!

Closing this issue in favor of separate tracking issues for the 3 work streams: Crosswalk guides, KX, CloudQuery tools.

Crosswalk guides: https://github.com/pulumi/docs/issues/1835
KX: In progress
CloudQuery: In progress


fixed an error for a match on a non exhaustive enum

Prior to wasm-bindgen v0.2.93, #[wasm_bindgen] on an enum made it "non-exhaustive" by adding a __Nonexhaustive variant, with the new release of v0.2.93 it does'nt introduce that variant anymore and just use #[non_exhaustive]. This PR solves this issue, for both prior versions and incoming version of wasm-bindgen.
I did a quick search and this is the only instance of the use of this "fake" variant in the codebase.

Thanks!


Discuss / explore: Initial Interactions with Swarmbot

from @aquabu:
The most tricky bit to sort out is the initial interactions for:

admin instance setup and default community for slack instance
users first interaction with swarmbot (which community?)
user changing their community

1 and 2 are the most important UX questions because they are the top of the funnel for using swarmbot and will influence our engagement massively. They are the difference between no one using it and people trying it and giving us more feedback / opportunity to interact.

see also https://github.com/citizencode/swarmbot/issues/167


transition uri.neuinfo.org to run on nginx and point to interlex

The uri.neuinfo.org resolver is currently implemented on the old apache server using a rewrite rule to neurolex. This needs to be moved to nginx and needs to point to the interlex records. This will be implemented in a similar way to the ontology.neuinfo.org was ported but without the need for the # replacement.
An additional complication is that all redirection of old identifiers that were moved to the scicrunch registry is handled by neurolex. We will need to find all of these identifiers (most should be in scicrunch-registry.ttl) and will need to redirect to the registry instead of to interlex.
The records of the mappings will be stored in ttl/generated/. The relationship for http://uri.neuinfo.org -> http://scicrunch.org/resolver/ should be owl:sameAs. The relationship for http://uri.neuinfo.org/nif/nifstd/ -> http://uri.interlex.org/origin/ should be owl:sameAs. In order for the semantics to actually be owl:sameAs we have to use use origin namespace that returns the view of the terms from the latest load of their source ontology (which means that it needs to be set up). Note that in order for the semantics to really be correct for this we need to finish merging the neurolex content back into the ontology. For cases where we decide not to merge back into the ontology I will point to the default namespace (see soon to be available specs doc for namespace definitions).

For the content negotiation:
html -> InterLex
RDF / OWL -> InterLex of GitHub?
Will need an RDF output for Registry items as well down the road then...

I think the rdf/owl should go to interlex since Troy has been writing code to return our proper owl translation for single terms and github cannot do that.
With respect to RDF output for the registry, I can adapt scicrunch-registry.ttl so that it can output individual records instead of translating the whole file so that all our various representations are consistent.

For the registry - we may want to have the portal return the RDF (build it from the inherent data)

That was my expectation. In theory we should be able to wrap my code so that it can be used transparently behind the scenes.

@tgbugs - so it wouldn't be pulling from scicrunch-registry.ttl then...

Yes. Had the wrong link. We would wrap the code that generates scicrunch-registry.ttl from the database not load it again from the file.

The bulk of this work is done, there are ~5000 or so uris that still need to be reviewed and mapped to interlex.

Are we good to have Sean re-direct uri.neuinfo?  If so, we can then take down nif-apps1 and nif-apps2 I believe.

Yes.

Hello everyone!
All turtle files I tried to access from TTL directory have outdated NIFSTD URIs pointing to http://uri.neuinfo.org/nif/nifstd.
Are there any updated files anywhere?
Regards,
Aref

The uri.neuinfo.org URIs are not outdated, they resolve directly to the master branch on github. See https://github.com/tgbugs/pyontutils/blob/6fa60b57fd225d211aa9aaf620aff547c72c09ef/nifstd/resolver/nif-ont-resolver.conf#L59 for reference.

The uri.neuinfo.org URIs are not outdated, they resolve directly to the master branch on github. See https://github.com/tgbugs/pyontutils/blob/6fa60b57fd225d211aa9aaf620aff547c72c09ef/nifstd/resolver/nif-ont-resolver.conf#L59 for reference.

Thanks a lot!


value() does not work with _json_pointer types

It would be great if value(), which supports default values, worked like at() which can handle _json_pointer types.
This would allow the handling of nested objects, and still be robust to missing elements.
To wit:
#include <json.hpp>

using json = nlohmann::json;

int main()
{
    json j =
    {
        {"object", {{"key1", 1}, {"key2", 2}}},
    };

    int at_integer = j.at("/object/key2"_json_pointer);
    int val_integer = j.value("/object/key2"_json_pointer, 0);

    std::cout << std::boolalpha << at_integer << " " << val_integer
              << " " << (at_integer == val_integer) << "\n";
}

This code produces the output:
2 0 false

Would be nice if it was 2 2 true.

Hi @clwill, thanks for reporting. It definitely makes sense to have the symmetry between value and at. I shall extend the function once #278 is solved.

Sounds great, thanks.
Chris

As the discussion in #278 got quieter, I extended the value function accordingly.

Thanks so much!
Unfortunately, the project I'm currently embroiled in requires CUDA, and their tools only work on VS 2013 (until they release 8.0). And your great code doesn't compile over there...
I'll be back to your library when CUDA releases 8.0 in August.


--fix flag is ignored in native render

We should see a deformed bulb with no-fixing in place

This is a configbrot issue

My bad; flag usage is
-fix=false


Issue #8181 resolution

References
https://github.com/DSpace/DSpace/issues/8181

Fixes #8181

Description
Added solr path as config in local.cfg
Instructions for Reviewers
Please let me know if I am missing some code changes to merge the code. I am willing to go the extra mile to commit the issue.

The Solr config I added in the local.cfg.EXAMPLE
Any other feedbacks are always welcomed

List of changes in this PR:

Changes in the SolrImportExport.java
Changes in the local.cfg to include the path to solr till the solr directory only without trailing '/'

@ammanabrolua : Realized that @mwoodiupui has an excellent point in his comment on the ticket. https://github.com/DSpace/DSpace/issues/8181#issuecomment-1152555037
This approach unfortunately won't work if Solr is installed separately from the backend (and DSpace 7 currently supports this setup).  So, my prior review can be disregarded.  I think @mwoodiupui is correct that we would likely need to rework this script to use the SolrJ or similar, and no longer assume that Solr is installed next to the DSpace 7 backend.
This might complicate the solution a bit...so if it's not something you are comfortable with, then I can work to reassign this to a different developer (unlikely to be done for 7.3 though, more likely in 7.4)

@ammanabrolua : We have a list of tickets labeled good first issue that are more approachable for newer developers. https://github.com/DSpace/DSpace/issues?q=is%3Aissue+is%3Aopen+label%3A"good+first+issue" and https://github.com/DSpace/dspace-angular/issues?q=is%3Aissue+is%3Aopen+label%3A"good+first+issue"
You are welcome to look for an issue that interests you or looks like something you feel comfortable solving.


HTTP load failed, 0/0 bytes (error code: -1009 [1:50])

We tried to use the latest release but discovered issues with URLSession loading on iOS. Considering that my internal fork (with strict concurrency changes) works well, I suspect something went wrong with other commits (maybe Privacy manifest??). I haven't had time to research so far.
Issue reported on the console when pointing to the 3.6.0 release:
nw_endpoint_handler_path_change [C6 edge.api.flagsmith.com:443 waiting parent-flow (satisfied (Path is satisfied), interface: en0[802.11], uses wifi)] blocked tracker
Connection 6: received failure notification
Connection 6: failed to connect 1:50, reason -1
Connection 6: encountered error(1:50)
Task <BAD4587C-xxx-xxxxx-xx-xxxxx>.<3> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
Task <BAD4587C-xx-xxx-xxxx-xx>.<3> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x600000c9b420 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorBlockedTrackerFailureKey=true, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=50, _NSURLErrorNWPathKey=satisfied (Path is satisfied), interface: en0[802.11], uses wifi}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <xxxxxxx>.<3>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "LocalDataTask <xxxxxxxxxx>.<3>"
), NSLocalizedDescription=The internet connection appears to be offline., NSErrorFailingURLStringKey=https://edge.api.flagsmith.com/api/v1/identities/?identifier=xxxxxxxxx, NSErrorFailingURLKey=https://edge.api.flagsmith.com/api/v1/identities/?identifier=xxxxxxxx, _kCFStreamErrorDomainKey=1}

cc. @dabeeeenster , @gazreese

Thanks @3a4oT, we will look into this. Could you update the title of the issue to better describe the issues that you're facing? Also, are you able to provide any further information about how to replicate this issue?

Thanks @3a4oT, we will look into this. Could you update the title of the issue to better describe the problems that you're facing? Also, are you able to provide any further information about how to replicate this issue?

Just try to get flags, nothing special. It fails when loading from an iOS app, so I guess it may be related to NSAppTransportSecurity (again not sure how and why, yet :)))

Hi @3a4oT do you have the tracking switch switched off for the app that you have Flagsmith integrated into?
If you go to Privacy and Security then Tracking in settings you should see a list of apps. Could you please try with and without for your app and let us know the outcome?

Hi, we're seeing exactly the same issue. No changes made to how we're using the Flagsmith SDK, but pointing to 3.6.0 release results in us seeing the same error.

Hi @3a4oT do you have the tracking switch switched off for the app that you have Flagsmith integrated into?
If you go to Privacy and Security then Tracking in settings you should see a list of apps. Could you please try with and without for your app and let us know the outcome?

My app is not on that list, but I guess you're digging in the right direction. It seems like the root cause of it is this change . Per  Apple documentation seems like a network error is expected if the user doesn't allow tracking.

NSPrivacyTrackingDomains
An array of strings that lists the internet domains your app or third-party SDK connects to that engage in tracking.
If the user has not granted tracking permission through the App Tracking Transparency framework, network requests to these domains fail and your app receives an error.

The issue is that SDK should continue to work no matter what the user chooses in terms of tracking.

ahh, just saw your PR, so it seems like you come to the same conclusion. I will try to test your branch and see whether it helps.

I can confirm that linked PR fixed the issue with network error.


Saving issue on Quest 2 for newer Android SDK versions

We previously attempted to upgrade the target Android SDK to version 29, as this was the minimum targeted version shipped with Unity 2019.4.18. However this created an issue with saving on Quest 2, where it does not have the correct permissions to access the  Open Brush/Tilt Brush folder due to an implementation change on higher Android SDKs.
A temporary fix was proposed in #18 using a legacy option in the android manifest file, but I feel we should take the time to implement it correctly instead, as this fix is already obsolete in the latest version of the Android SDK.

Notes on possible fix: https://stackoverflow.com/questions/63842070/accessing-external-storage-in-android-api-29

I realize that targeting Android 30 will require a different fix, but can we revisit the proposal of #18? Unity 2019.4.18f ships with an Android SDK of 29, and I think that the value of being able to build with that version (without needing to install Android Studio and the SDK for 26) exceeds the value of keeping the original TB code (which was, in any case, Unity 2018) or the value of avoiding deprecated code in a version where it's still the "proper" fix.

After research, it looks like Unity doesn't have a native way to access the new scoped permissions system in newer Android SDKs as of yet, and there's no clear timeline for this being available. I concur with @mikeage that for compatibility's sake it would be better applying #18 until if and when Unity is ready. This will also help with #43 when it's ready!

So #43 is actually ready, just blocked on:

this
One open design question (license as Github secret or in the file
Actually setting up the license, which needs another branch
But it's ready :-)


Jinja generators can generate Markup

Jinja generators can produce Markup in addition to strings.  Fix code to handle this.  Also fix a typo.

I'm closing this pull request.  Not sure what happened, but it shouldn't be this big.


Silently fails if version option to createInstance is semver format.

This does nothing:
localforage.ready().then(() => {
      this.offlineStorage = localforage.createInstance({
         name: 'foo',
         version: '0.0.1',
      });
      this.offlineStorage.setItem('TEST', { test: 123 }).then((x) => { console.log(x); });
    });

This prints the { test: 123 } object:
localforage.ready().then(() => {
      this.offlineStorage = localforage.createInstance({
         name: 'foo',
         version: '0.1',
      });
      this.offlineStorage.setItem('TEST', { test: 123 }).then((x) => { console.log(x); });
    });

Really this occurs if you pass a string that cannot be casted to a number... i.e. a number with TWO decimals (aka semver).  I'll mention it in the bad version documentation issue.


All User Stories migrate with state "New"

When i try to migrate the user stories, using the type "All", the new states are created in the process, and only happens for the type User Story.
config-agile.txt

A work around this I found was to create another state mapping group just for User Stories (even if it's identical to the "All" type)

@nicksimons-limeade this is a Mapping that only contains the Type Mapping to "User Story"?
{
        "source": "status",
        "target": "System.State",
        "for": "User Story",
        "mapping": {
          "values": [...]
}

@5nowx  , what if you take out the for line entirely?
and just have
"source": "status",
"target": "System.State",
"mapping": {
"values": [
That's how I got mine to work.

Following @quadmig response the User Stories have the correct state, but i still cannot have custom state mapping for the UE, but is a working as intended right now

@5nowx are you good with the migration for now? Can you share the mapping to wanted and I'll have a look.

Hey @MOlausson
I ended up using:

{
  "source-project": "...",
  "target-project": "...",
  "query": "project = XXXXXXX ORDER BY Rank ASC",
  "workspace": "C:\\",
  "epic-link-field": "Epic Link",
  "sprint-field": "Sprint",
  "download-options": 7,
  "batch-size": 20,
  "log-level": "Info",
  "attachment-folder": "Attachments",
  "user-mapping-file": "users.txt",
  "ignore-failed-links": true,
  "process-template": "Custom-AGILE",
  "link-map": {
    "link": [
      {
        "source": "Epic",
        "target": "System.LinkTypes.Hierarchy-Reverse"
      },
      {
        "source": "Parent",
        "target": "System.LinkTypes.Hierarchy-Reverse"
      },
      {
        "source": "Relates",
        "target": "System.LinkTypes.Related"
      },
      {
        "source": "Duplicate",
        "target": "System.LinkTypes.Duplicate-Forward"
      }
    ]
  },
  "type-map":{
    "type": [
      {
        "source": "Feature",
        "target": "Feature"
      },
      {
        "source": "Epic",
        "target": "Epic"
      },
      {
        "source": "Story",
        "target": "User Story"
      },
      {
        "source": "Bug",
        "target": "Bug"
      },
      {
        "source": "Task",
        "target": "Task"
      },
      {
        "source": "Sub-task",
        "target": "Task"
      }
    ]
  },
  "field-map": {
    "field": [
      {
        "source": "summary",
        "target": "System.Title",
        "mapper": "MapTitle"
      },
      {
        "source": "assignee",
        "target": "System.AssignedTo",
        "mapper": "MapUser"
      },
      {
        "source": "description",
        "target": "System.Description"
      },
      {
        "source": "priority",
        "target": "Microsoft.VSTS.Common.Priority",
        "mapping": {
          "values": [
            {
              "source": "Blocker",
              "target": "1"
            },
            {
              "source": "Critical",
              "target": "1"
            },
            {
              "source": "Highest",
              "target": "1"
            },
            {
              "source": "Major",
              "target": "2"
            },
            {
              "source": "High",
              "target": "2"
            },
            {
              "source": "Medium",
              "target": "3"
            },
            {
              "source": "Low",
              "target": "3"
            },
            {
              "source": "Lowest",
              "target": "4"
            },
            {
              "source": "Minor",
              "target": "4"
            },
            {
              "source": "Trivial",
              "target": "4"
            }
          ]
        }
      },
      {
        "source": "Sprint",
        "source-type": "name",
        "target": "System.IterationPath",
        "mapper": "MapSprint"
      },
      {
        "source": "labels",
        "target": "System.Tags",
        "mapper": "MapTags"
      },
      {
        "source": "comment",
        "target": "System.History"
      },
      {
        "source": "status",
        "target": "System.State",
        "mapping": {
          "values": [
            {
              "source": "To Do",
              "target": "To Do"
            },
            {
              "source": "Done",
              "target": "Done"
            },
            {
              "source": "In Progress",
              "target": "In Progress"
            },
            {
              "source": "Dev. Complete",
              "target": "Dev. Complete"
            },
            {
              "source": "Testing",
              "target": "Testing"
            },
            {
              "source": "QA Ready",
              "target": "Ready for QA"
            },
            {
              "source": "Blocked",
              "target": "Blocked"
            },
            {
              "source": "Defective",
              "target": "Defective"
            },
            {
              "source": "Ready for QA",
              "target": "Ready for QA"
            },
            {
              "source": "Open",
              "target": "To Do"
            },
            {
              "source": "Submit Change Request",
              "target": "To Do"
            }
          ]
        }
      },
      {
        "source": "Story Points",
        "source-type": "name",
        "target": "Microsoft.VSTS.Scheduling.Effort",
        "not-for": "Task"
      },
      {
        "source": "timeestimate",
        "target": "Microsoft.VSTS.Scheduling.RemainingWork",
        "mapper": "MapRemainingWork",
        "for": "Bug,Task"
      },
      {
        "source": "description",
        "target": "Microsoft.VSTS.TCM.ReproSteps",
        "for": "Bug"
      }
    ]
  }
}

This works, and was able to migrate the User Story with the respective states because those are the only ones I use, but if i had to use custom states for the User Stories i'll be with no luck.
As recommended by @quadmig i didn't used a state "for" value in the mapping.

Thanks for the details @5nowx! Just so I understand, this mapping works:
{
   "source": "In Progress",
   "target": "In Progress"
},

and this doesn't:
{
   "source": "QA Ready",
   "target": "Ready for QA"
},

If so, have you added the custom states in the Azure DevOps project before the import?

Yes, all the new states where created previously to the migration, Some of them just have a semantics difference in jira compared to AZ DevOps, but that was planed.

Ok, will try to repro.

We are having the same issue with custom states in Jira.  Were you able to reproduce?

Hi @Dustinparkes08, unfortunately, I was not able to repro this problem. It might be that with the latest fixes we have done we have corrected the problem. Once we release a  new version could you try again and let us know if your issue still persists.


Remove leftover args[0].code checks from the OPS.paintXObject cases in evaluator.js

From looking at blame, it seems that these checks became obsolete with PR #692 (which landed close to six years ago). Note how, after that PR, there's no longer anything being assigned to the code property of an Object.

/botio test

Nice find!
(The failed regression tests is a known intermittent one.)


sip-native5: remove recipe

Removed the recipe as a newer version of the package is already part of
the meta-openembedded layer.
Signed-off-by: Oleksandr Kravchuk<EMAIL_ADDRESS>

Just remember to rebase before merging.


WebGui?

Just curious, I appreciate the response, So far loving this thing.

This has been suggested a few times, and I thought I remembered that someone had created a basic web UI, but I can't find it.
@FezVrasta suggested it in #57, and @Sispheor suggested it in #64.

I appreciate the feedback I should have searched harder.
On Fri, Oct 30, 2015, 6:23 PM Ben Peddell<EMAIL_ADDRESS>wrote:

This has been suggested a few times, and I thought I remembered that
someone had created a basic web UI, but I can't find it.
@FezVrasta https://github.com/FezVrasta suggested it in #57
https://github.com/FezVrasta/ark-server-tools/issues/57, and @Sispheor
https://github.com/Sispheor suggested it in #64
https://github.com/FezVrasta/ark-server-tools/issues/64.
—
Reply to this email directly or view it on GitHub
https://github.com/FezVrasta/ark-server-tools/issues/255#issuecomment-152672534
.

Keep this around as a feature request, since there is no separate issue for it.

We use webmin and usermin for the web interface for the server. You can set up all the commands in webmin and make them accessible via steam user on usermin. I run multiple servers so the custom commands run all the games rather than one interface with each game.

Did a hacky web interface that currently only works on servers with Sudoers since we gotta allow www-data to run the arkmanager command, and add the www-data to the steam group and do the correct chmod for it to work, but it works :) even shows live update of what is happening, and do a check to se if the server is online, before saying it's online but again was just created for my community, but it's quite easy :)

Currently cleaning up my WebUI for Ark it's based on JavaScript, php, reason for php is thats the language i know the best, and you can use easyengine to install a Nginx webserver quite easy.
Currently learning NodeJS so in the future it might be NodeJS based, to remove permission issues.

I would integrate a web UI only if written in Node.js or any other programming language that doesn't need to install heavy dependencies on the server.
@benzon if you need any help with a Node.js conversion feel free to ask me in this issue, I've a bit of experience with it.

@FezVrasta Agree, the version im doing now is to polish what i got and clean up the code so i can allow others to actually download and use it, the issue with it is dependencie on Sudoers, and Nginx/EasyEngine(Greate Nginx Tool) and some permission work like adding www-data to the steam group.
NodeJS would remove the permission issues we would be able to run it as the Steam user without any major security issues.
About the API thought not sure it's that crucial for the WebUI should still be simple to create with out since NodeJS should be able to run CMD commands and grap the output live from arkmanager, and that data should be fine, since it tells whats going on.
Still learning NodeJS, but my goal is to convert the HTML, JavaScript, PHP WebUI in to NodeJS so it's easy to deploy and avoid permission issues on Linux.

The only thing php currently do is run the CMD commands live load the reply and wright it to a text file.
And then it uses Source Query PHP  class to grap the status of the game server if its up or down, and show a player list on the page, it's a single page design where the text file and calls to php is done with Ajax.

Do you guys think there is need for android app? As I'm might be interested to contribute this too. I have wrote little API for myself with php too and made Android app which uses that API. I made those because I wanted to monitor server "on-the-road" easier way rather than writing commands via ConnectBot app. With my API/app I'm able to check server status (is it running, is it online and version), chat log (last 500 messages), player names (and current steam name as ARK reports only the steam name which was when the user first time joined server). I planned to add features like sending messages/broadcasts, kicking and banning players from app too.
I chose php because the server is running web server anyway so the huge dependencies was not problem but I agree that the nodeJS would be a better way to go.
@FezVrasta drop me email if you're interested to test the app, I can send it to you so you can test it with my server.

(@benzon, when I was talking about writing some official API :P)
@Lihis I think it's a great idea, but I would love to get an official API supported by the contributors before chime into specific apps.
I can prepare a basic API interface in Node.js, easily extensible, and then all the interested guys can contribute to it.
Once a Node.js API is ready, everybody can easily write 3rd party apps and interact with it.
Do we have a plan so?

@FezVrasta Yeah, API first (well documented? :p) then it is easy to start develop 3rd party apps, like my app or this webgui thing.
I do not have experience with nodeJS but I took a quick look and it does not seem to be too hard to learn for me. So count me in.

I've pushed to the new api branch a simple REST server.
To run it cd in /api and then
npm install
npm start
```

https://github.com/FezVrasta/ark-server-tools/tree/api

@klightspeed if we want to support this kind of stuff we need to get JSON from Arkmanager, is it something easy to achieve?
Thanks!

That was fast. I got that up and running. By the way, are you running Ubuntu?

No I'm on OS X.

Whoops.. Missed the "on your server" part from my message..
Anyways, this is irrelevant at this point but on the package.json line 7 node needs to be changed to nodejs at least for Debian 8.2 and Ubuntu 14.04 (and upwards). As the "nodejs" package provides /usr/bin/nodejs. Or the user must install nodejs-legacy package which provides /usr/bin/node or just create symlink. On Arch Linux "nodejs" package seems to be providing "node" binary.

 I wasn't aware of this problem. On Windows and OS X the binary is just node.
May you trying adding a start.sh to the api folder and put inside it these lines?
if [ "$(type -t node)" = "file" ]; then
    node index.js
else
    nodejs index.js
fi
}```

and put `bash start.sh` as `start` command?

It should use the correct binary

Please for anything related to the API use the new #335 issue.

Ok I've pushed the changes.


Feature/updates

[x] Update elixir/otp versions
[x] Improve logger parameter settings
[x] Stop system application on test finishing
[x] Reduce test execution steps

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Check uncheck display final branch

We fixed the problem where the 'unchecked' event file attachment is still displayed. We also enabled users to add more image types for event file attachments.

Is this old? I thought we'd already merged this into development. Please close PRs that are not needed


Update column on decimal field

Hi,
if you try to use the function "Update column" on a decimal field, you can only use 2 decimal places instead of 5.
I tried it on field "Rounding precision" on item table and i had to update it from 1 to 0,00001 but i can only reach 0,01.

Thank you
Alessandro

Hello,
Thanks for letting me know, fix is already in the master branch for version <IP_ADDRESS>
https://github.com/Drakonian/data-editor-for-bc/commit/b482ccbd622339b1bda5f6be3f3898bc61eaeafd
@AlessandroLongoni


Pub gives a bad error message if looking for an sdk dependency that doesn't exist

I added a package "smoke" locally under SDK and had it as an SDK dependency, but my create_sdk wasn't updated. A pub --verbose install gives the following
dhcp-172-31-81-78:serialization alanknight$ pub --verbose install
IO  : Seeing if file /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.yaml exists.
IO  : File /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.yaml exists.
IO  : Reading text file /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.yaml.
IO  : Read /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.yaml. Contents:
    | name: serialization
    | description: >
    |   Provide a serialization facility for Dart objects.
    | author: "Dart Team<EMAIL_ADDRESS>    | dependencies:
    |   unittest:
    |     sdk: unittest
    |   smoke:
    |     sdk: smoke
    |
FINE: Loading lockfile.
IO  : Seeing if file /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.lock exists.
IO  : File /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.lock exists.
IO  : Reading text file /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.lock.
IO  : Read /Users/alanknight/dart-git/dart/pkg/serialization/pubspec.lock. Contents:
    | {"packages":{"unittest":{"version":"0.0.0-r.15817","source":"sdk","description":"unittest"}}}
MSG : Resolving dependencies...
FINE: Adding (entrypoint)'s constraint serialization 0.0.0 from root (serialization).
FINE: Changing serialization to version 0.0.0.
FINE: Adding serialization's constraint smoke any from sdk (smoke).
IO  : Reading text file /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/revision.
IO  : Read /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/revision. Contents:
    | 16279
    |
IO  : Seeing if file /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/pkg/smoke exists.
IO  : Seeing if directory /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/pkg/smoke exists.
IO  : File /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/pkg/smoke does not exist.
IO  : Directory /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/pkg/smoke does not exist.
IO  : Seeing if file /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/lib/smoke exists.
IO  : Seeing if directory /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/lib/smoke exists.
IO  : File /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/lib/smoke does not exist.
IO  : Directory /Users/alanknight/dart-git/dart/xcodebuild/ReleaseIA32/dart-sdk/lib/smoke does not exist.
ERR : Illegal argument(s): join(): part 0 was null, but part 1 was not.

This issue has been moved to dart-lang/pub#406.


Inclusion in main branch: Geomapping for internal IPs

This version has added support for an additional lookup table for IP addresses to geo information to enable geomapping for internal and edge gateway addresses that would otherwise be inaccurate or unavailable.
The approach is to use a JSON file with geoinformation and IP address range information that will be queried before the GeoIP DB and used in its place if there is a match.

Jenkins standing by to test this. If you aren't a maintainer, you can ignore this comment. Someone with commit access, please review this and clear it for Jenkins to run; then  say 'jenkins, test it'.

Thanks for submitting the PR, however, we have no plan to maintain this feature in the master branch.


Deploy Intro-Server to Azure

For New Contributors
How to contribute
Description

We want to use Azure for deployment of the Intro-Server.
Work with or be @smudge202 - "[I have some Free Azure points we can use]".
Intended Design

N/A
Location

Microsoft Azure
Related Issues

N/A
Requirements

N/A
Additional information

N/A
Definition of Done

[ ] V1.1 Intro-Server is deployed and running on Azure
[ ] Intro-Server IP secret is updated

Any thoughts if the server should be deployed via VM or web-service, the latter via docker image?

It would be fairly straight forward to dockerize. We could also build it on the server itself. I don't have strong opinions on either but docker is likely the better solution

Has anyone already started dockerizing it? I've seen an issue (#) on this, but it was last updated 7 months ago.

Not going to use azure for the moment


Livarno Lux RGBW LED-Strip no color.

HI,
who knows why the RGB color is not working with my Homey? I've already updated the Homey Pro and my phone app.
But still only White will work, no color of any kind, so who can help me with this?
Paul
Eindhoven
The Netherlands

Hi @kb-net, please interview the device and then restart the app. If the colors still does not work please let me know.
https://tools.developer.homey.app/tools/zigbee

Hi Johan,
It works thanks to U.
So thank U and keep up the good work.
With kind regards,,
Paul Kuiper
n @.> @.
Hallo Johan,
Danke Sie für ihren hilfe mit diesem problem.
Jetzt wirkt es super durch Ihren hilfe, so bleiben Sie es weiter machen so…
Mit freundliche grüsse,
Paul Kuiper
Van: Johan Bendz @.>
Verzonden: vrijdag 10 december 2021 08:02
Aan: JohanBendz/com.tuya.zigbee @.>
CC: Paul @.>; Mention @.>
Onderwerp: Re: [JohanBendz/com.tuya.zigbee] Livarno Lux RGBW LED-Strip no color. (Issue #131)
Hi @kb-net https://github.com/kb-net , please interview the device and then restart the app. If the colors still does not work please let me know.
https://tools.developer.homey.app/tools/zigbee
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/JohanBendz/com.tuya.zigbee/issues/131#issuecomment-990667713 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AMDQ3TV2KZ5ASYIAK72SFSLUQGQVHANCNFSM5I4E3LHQ .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675  or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .   https://github.com/notifications/beacon/AMDQ3TR6BBVXA7YWZS7FLRDUQGQVHA5CNFSM5I4E3LH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHMGGHQI.gif

Hello Johan,
How can I get the Homey to select the White color that I send via a Flow.
White should be “FFFFFF” but it seems not to work right, but the colors works great.
Kind regards,
Paul Kuiper
n @.> @.
Van: @.*** @.>
Verzonden: vrijdag 10 december 2021 08:27
Aan: 'JohanBendz/com.tuya.zigbee' @.>
Onderwerp: RE: [JohanBendz/com.tuya.zigbee] Livarno Lux RGBW LED-Strip no color. (Issue #131)
Hi Johan,
It works thanks to U.
So thank U and keep up the good work.
With kind regards,,
Paul Kuiper
n @.> @.
Hallo Johan,
Danke Sie für ihren hilfe mit diesem problem.
Jetzt wirkt es super durch Ihren hilfe, so bleiben Sie es weiter machen so…
Mit freundliche grüsse,
Paul Kuiper
Van: Johan Bendz @.*** @.> >
Verzonden: vrijdag 10 december 2021 08:02
Aan: JohanBendz/com.tuya.zigbee @. @.> >
CC: Paul @. @.> >; Mention @. @.***> >
Onderwerp: Re: [JohanBendz/com.tuya.zigbee] Livarno Lux RGBW LED-Strip no color. (Issue #131)
Hi @kb-net https://github.com/kb-net , please interview the device and then restart the app. If the colors still does not work please let me know.
https://tools.developer.homey.app/tools/zigbee
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/JohanBendz/com.tuya.zigbee/issues/131#issuecomment-990667713 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AMDQ3TV2KZ5ASYIAK72SFSLUQGQVHANCNFSM5I4E3LHQ .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675  or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .   https://github.com/notifications/beacon/AMDQ3TR6BBVXA7YWZS7FLRDUQGQVHA5CNFSM5I4E3LH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHMGGHQI.gif

Hi Johan,
I thought that I had the White color selected by a Flow, but it was a simulated whit by the RGB LED's and not through the White LED's...
How can I select the White LED's for the White Light?
Thanks,
Paul.
And Gu U also know how to connect the Zigbee 4 channel relay as the Tuya app does?
This is a seperate issue on Github

Hi @kb-net, happy the color issue got solved.
Hmm.. that was very interesting with the white light issue using a flow.. I have totally missed out on this issue.. looks like I need to add a card that switches between white and color. I'll look into that! :) 👍
If the 4 channel relay is the same device that is in PR section it will be added in a while, I'll have a look at that too.

Hi again @kb-net. Sorry for the mixup.. It's not the color you should change if you want to use the white leds but the temperature.

Hi Johan,
i don't know if it is the same kind of product. I've bought it on AliExpress.
https://nl.aliexpress.com/item/1005003165707937.html?spm=a2g0s.122695<IP_ADDRESS>f6b52e9RAucNP
https://ae01.alicdn.com/kf/H9b4c546cba1c48f1ba9fcda979cf707aa/4CH-Zigbee-Smart-Lichtschakelaar-Module-Dc-5-12-32V-RF433-Ontvangen-10A-Relais-Werken-Met-Alexa.jpg
It's about the "4CH Zigbee Smart Lichtschakelaar Module Dc 5/12/32V RF433 Ontvangen 10A Relais Werken Met Alexa google Assistent Mqtt Tuya Smartthings" and now it only connects 1 relais to the Homey.
It should be compatible with Zigbee, Tuya, Tuya Smart, Tuya Smart Life, Zigbee2mqtt, zigbee 3.0.
I also see 2 switches that look the same: "Power Strip Socket 1/4" and they also only connect 1 relais.
Thanks,
Paul


ADBDEV-4937-40: Add assertions to return from dynamic_cast.

Add assertions to return from dynamic_cast.
dynamic_cast may return NULL, so I added assertions.

https://github.com/arenadata/gpdb/pull/855


Implement mechanism to record somatic voltages for all cells in a simulation

The purpose of this issue is to replicate the end result of displaying somatic voltages for all cells, as in HNN. Required by https://github.com/jonescompneurolab/hnn/issues/231
Some of the needed functionality to record somatic voltages of cells already exists in
https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/cell.py#L219-L237
However, it is only used for simulating a single cell. HNN needs this done for all cells with a high-level mechanism.
https://github.com/jonescompneurolab/hnn-core/blob/master/hnn_core/cell.py#L331
Suggest preserving the save_vsoma param, which can in turn set up recording for each cell on network creation, similar to below
https://github.com/jonescompneurolab/hnn/blob/master/network.py#L288
Lastly, aggregating all of the voltages for writing was parallelized in HNN. Not sure how long it takes otherwise.
https://github.com/jonescompneurolab/hnn/blob/master/run.py#L100-L114

Related to https://github.com/jonescompneurolab/hnn-core/issues/121. I don't know exactly what the bug is referring to. Seems like a feature enhancement as proposed here?

I think the bug is that you don't want to have a current input when the cell is connected to other cells in the network?
I think it might be better if the voltages can be added as an attribute of the Network object rather than being saved. In an ideal world, it should be part of the cell object which is transparently accessible but we're not there yet, so I can live with an okay solution.


pab front end deserialization errors

with a clean pab db, we spin up a server with the prism-mirror example contract.
we receive the following errors in the example contract:

this contract seemed to work with the same steps prior to https://github.com/input-output-hk/plutus/commit/48efaeb6fed2ce9a38ec81c3703f04d73480d58f
(except for the insufficient funds errors observed in the related ticket)
built against cd49a84f19c536397b7516d2a378720400f5ee47 in nix shell

for searchability later, the error text is:
Error at property "tag": Expected "NewChainReport" tagError at property "tag": Expected "NewContractReport" tagError at property "tag": Expected "NewChainEvents" tagError at property "tag": Expected "FetchedProperties" tagError at property "tag": Expected "FetchedProperty" tagError at property "tag": Expected "ErrorResponse" tag

Please try again or contact support for assistance.
DecodingError: ("Error at array index 0: Error at property \"events\": Type mismatch: expected array, found Undefined" : Nil)
Please try again or contact support for assistance.

@Benjmhart Thank you for reporting this. We are aware the PAB webapp isn't working at the moment. This will be fixed in the near future and I'll notify here once we expect it to be working again.


Windows update mediapipe-model-maker lastest ver issue

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Win10
Python Version
Python 3.9.13
MediaPipe Model Maker version
mediapipe-model-maker==<IP_ADDRESS>
Task name (e.g. Image classification, Gesture recognition etc.)
pip install mediapipe-model-maker==<IP_ADDRESS>
Describe the actual behavior
ERROR: Cannot install mediapipe-model-maker because these package versions have conflicting
Describe the expected behaviour
install success
Standalone code/steps you may have used to try to get what you need
I try to update mediapipe-model-maker lastest ver.
run:
pip install mediapipe-model-maker==<IP_ADDRESS>
ERROR: Cannot install mediapipe-model-maker because these package versions have conflicting dependencies. The conflict is caused by: tf-models-official 2.13.2 depends on tensorflow-text~=2.13.0 tf-models-official 2.13.1 depends on tensorflow-text~=2.13.0
next run:
pip install tensorflow-text==2.13.0
ERROR: Could not find a version that satisfies the requirement tensorflow-text==2.13.0 (from versions: 2.5.0, 2.6.0rc0, 2.6.0, 2.7.0rc0, 2.7.0rc1, 2.7.3, 2.8.0rc0, 2.8.1, 2.8.2, 2.9.0rc0, 2.9.0rc1, 2.9.0, 2.10.0b2, 2.10.0rc0, 2.10.0) ERROR: No matching distribution found for tensorflow-text==2.13.0

Other info / Complete Logs
No response

@cjl84914,
There are known issue in Windows related to 'pyyaml' and 'tf datasets' versions. As workaround, please follow the steps below:

Install Python version 3.10 (tested with 3.10.11).

Install the latest version of MediaPipe Model Maker using the command: pip install mediapipe-model-maker==<IP_ADDRESS>.
     If you encounter an error like AttributeError: cython_sources, please resolve it by downgrading the pyyaml version
     using the command: pip install pyyaml==5.3.1.

After downgrading pyyaml, attempt to install the MediaPipe Model Maker again using the command: pip install mediapipe-model-maker==<IP_ADDRESS>. If all goes well, the installation should be successful as screenshot attached below:

Also, here's an example: If you're importing from mediapipe_model_maker import image_classifier, as guided here. and you see an error like:

To fix this, just use the command:

Don't worry about any warning messages that show up after installing MediaPipe Model Maker. Also, please inform us if these steps resolve the issues you were facing. Thank you

I have tried command in python 3.10.11 env.
run1:

pip install mediapipe-model-maker==<IP_ADDRESS>
ERROR: Cannot install mediapipe-model-maker because these package versions have conflicting dependencies. The conflict is caused by:  tf-models-official 2.14.0 depends on tensorflow-text~=2.14.0  tf-models-official 2.13.2 depends on tensorflow-text~=2.13.0  tf-models-official 2.13.1 depends on tensorflow-text~=2.13.0
run2:
pip install pyyaml==5.3.1
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. datasets 2.12.0 requires aiohttp, which is not installed. datasets 2.12.0 requires huggingface-hub<1.0.0,>=0.11.0, which is not installed. datasets 2.12.0 requires numpy>=1.17, which is not installed. datasets 2.12.0 requires packaging, which is not installed. datasets 2.12.0 requires requests>=2.19.0, which is not installed. paddlenlp 2.5.2 requires colorama, which is not installed. paddlenlp 2.5.2 requires fastapi, which is not installed. paddlenlp 2.5.2 requires huggingface-hub>=0.11.1, which is not installed. paddleslim 2.4.1 requires pillow, which is not installed. ppdiffusers 0.14.1 requires Pillow, which is not installed. ppdiffusers 0.14.1 requires safetensors, which is not installed. Successfully installed pyyaml-5.3.1
next, I have run1 again, result is same.

I also encounter the same issue. Hoping to get it resolved here.

Hi @cjl84914 and @lamteteeow,
Unfortunately tensorflow-text stopped supporting windows since version 2.11 - see https://github.com/tensorflow/text/issues/1140 and https://github.com/tensorflow/text#a-note-about-different-operating-system-packages. You can try building the tensorflow-text package from their Github if you need to run this on Windows.
If you are not using the text_classifier task in Model Maker(which requires tensorflow-text), then you may also try to install using pip with the --no-deps parameter. You would need to install each of the requirements except for tensorflow-text independently. It seems like this was a hacky solution proposed by a user here: https://github.com/tensorflow/text/issues/1206.
Alternatively, you can try using Windows Subsystem for Linux(WSL) or the Colab cloud environment to install these packages in a Linux environment.

Hi, thank you very much.
As rsandler00 saying: For anyone wondering, I had to install tf-models-official in pip using the --no-deps parameter and then installed each of the other dependencies one-by-one - very hacky solution.
I hope either tensorflow-text stops being a formal requirement for tf-models-official OR tensorflow-text starts offering windows support again.
Thanks again.
https://github.com/tensorflow/text/issues/1206

@lamteteeow @kuaashish @joezoug Thank you very much!
Fortunately, I have resolved the issues, using Windows Subsystem for Linux(WSL).
step1 install wsl:
https://learn.microsoft.com/zh-cn/windows/wsl/install
step2 install cuda:
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda

step3 install cudnn:
sudo dpkg -i cudnn-local-repo-ubuntu2204-<IP_ADDRESS>_1.0-1_amd64.deb
sudo cp /var/cudnn-local-repo-ubuntu2204-<IP_ADDRESS>/cudnn-local-72322D7F-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt -y install libcudnn8 libcudnn8-dev

step4 install anaconda:
Omit this step
step5 install mediapipe:
pip install mediapipe-model-maker==<IP_ADDRESS>

Detailed:
https://zhuanlan.zhihu.com/p/621142457?utm_id=0
Wish help other who facing same issue!


GIF used as background image gets resized

We're using imageprocessor that is now default with the Umbraco CMS.
We noticed one of the animated GIFs that is used as a background image on a div gets resized by imageprocessor, while we do not want this to happen. It's a fairly large transparent GIF (1917x1580) but when the imageprocessor is enabled in the web.config, the image gets scaled to something smaller.
Is there any way to prevent image processing on certain files or directories?

Could you please supply some more details and perhaps the image.
No scaling should occur unless there are querystring parameters passed. The post processor might be doing something though and I'd like to test it.
In the interim add ?ipignore=true to the image request. That should tel ImageProcessor.Web to ignore it.

Here's the image.
Meanwhile one of our devs found a solution(and with that the probable cause for this). Placing a pixel in the right-hand bottom corner fixed it, and the GIF is no longer resized.
The problem here was that the GIF is mostly transparent, with a small animation in it, but around the naimation everything is transparent. For some reason imageprocessor removed the excess transparency on the right and bottom of the image.

It's most probably gifsicle then that is doing it. I'm using gifsicle to shrink the output images for the web.
There might be a setting that will prevent this. If you have the opportunity before I can to compare the available settings with what I have here please let me know.

I will have a look at the settings, but shouldn't imageprocessor skip the GIF when no parameters are passed in the first place?

It used to but there was an issue with remote files getting returned at a larger size than when they were first downloaded. I couldn't find a way to cleanly identify each potential IImageService source without introducing breaking changes so decided to intercept all requests. I might have another go at cracking it but I'm really concentrating on v3 now.
Sadly I don't get the contribution I always hoped to get so I can only devote so much time to the project.

I really appreciate the time and effort you're putting into this. Unfortunately I don't have the time to offer much assistance myself.
I did just look at your sourcecode for imageprocessor. I could be worng ofcourse, but wouldn't it be as simple as adding the following code to the ProcessImageAsync method in the ImageProcessingModule.cs file:
if (request.QueryString == null || request.QueryString.AllKeys.Count() == 0)
{
    return;
}

just below your line that excludes everything that has the ipignore parameter?

It'll require a wee bit more than that I think as I still want to store remote files locally.... I'll see what I can come up with.


Language Tasks with PaLM API not working anymore

[REQUIRED] Step 3: Describe the problem
Hi,
we were using the "Language Tasks with PaLM API" Extension. Suddenly it stopped working with the following error message:

I contacted Firebase support and they told me that this extension seems to be deprecated? I can see no hint regarding its deprecation.  I tried reinstalling the extension, without success
Steps to reproduce:

Install the extension "Language Tasks with PaLM API" with those settings:

Expected result
Extension should work as promised
Actual result
Extension gives error

Any update on this topic?

Same is happening with the extension: Summarize Text with PaLM API, and no replacement is available... :S

Is there anyone at google working on this? Its been 3 weeks without any response. Our customers cant use the AI functionality. Is there any migration path to a working solution?

Is this the customer support we can expect from google? You are ignoring this request for 21 days?

?


[PRM-3067] Create Other Ways to appeal page

Based off https://github.com/hmrc/penalties-appeals-frontend/pull/525


SCSS placeholders not being syntax colored

VSCode Version: Code - Insiders 1.13.0-insider (755d45a10785bf5008f27e10a8d607c4443dbf0c, 2017-05-25T05:06:38.560Z)
OS Version: Darwin x64 16.6.0
Extensions:

Extension
Author
Version

ng-template
Angular
0.1.3

code-settings-sync
Shan
2.8.0

sort-lines
Tyriar
1.3.0

Bookmarks
alefragnani
0.15.0

project-manager
alefragnani
0.17.0

vscode-eslint
dbaeumer
1.2.11

tslint
eg2
0.15.0

Angular2
johnpapa
2.3.1

vscode-icon-theme
jtlowe
1.5.0

karyishlight
smlombardi
1.0.0

theme-karyfoundation-themes
karyfoundation
12.1.1

HTMLHint
mkaufman
0.3.3

vscode-stylefmt
mrmlnc
2.4.1

angular2-inline
natewallace
0.0.17

typescript-hero
rbbit
0.12.0

stylelint
shinnn
0.24.0

darcula-extended
smlombardi
3.3.2

slime
smlombardi
2.6.0

theme-tesla
smlombardi
6.0.0

change-case
wmaurer
1.0.0

Steps to Reproduce:

SCSS placeholders are not being correctly scoped as entity.other.attribute-name.placeholder.scss or entity.other.attribute-name.placeholder.css as they are when defined

When used:

When defined, correctly scoped and colored:

Do you don't like the scope issued by the grammar? We use the grammar from https://github.com/atom/language-sass, you should write an issue there.
Note that entity scopes are typically used for declarations, but not references. But of course, there are exceptions.
So it's not clear to me if this really a bug.


Move internal api v1x0

We'll need to work with AIOPS to make sure they update any of their code which uses the internal API to get tenants

cc @Ladas @tumido are you guys using this endpoint?  We need to move it to paginated and v1.0

Hi all, I'm about to change AI-Ops topo collector to adjust to this. Quick question: We use this API to collect the external_tenant property of each entry. Can you plese confirm that there's no change in the scheme? So all we need to change is an API version number? :wink:

@tumido correct the scheme will not change, but this will be paged like all the other endpoints where before it was not.

@agrare I see. We'll add pagination then :) Thank you :+1:

@bdunne I updated this to only add the /internal/v1.0 API, then once AIOPS updates their code we can drop the old v0 API.  This way we dont' have to coordinate perfectly.

@tumido let me know when you've switched to using v1.0 so I can delete the older API


Update services.yaml

The configuration key "$defaultOptions" is unsupported for definition "Endroid\QrCode\Factory\QrCodeFactory" in "/private/var/www/system/var/vendor/endroid/qrcode-bundle/src/DependencyInjection/../Resources/config/services.yaml". Allowed configuration keys are "alias", "parent", "class", "shared", "synthetic", "lazy", "public", "abstract", "deprecated", "factory", "file", "arguments", "properties", "configurator", "calls", "tags", "decorates", "decoration_inner_name", "decoration_priority", "autowire", "autoconfigure", "bind".

Please add tests while you're at it

this is more of an issue i run into, and i am using this branch until this gets fixed

@iltar do you have the same problem with sf4?


Force authentication option for steps in the authentication script

The new functionality introduced with https://github.com/wso2/carbon-identity-framework/pull/2961 is not documented in the JS API reference.
It should be available from 5.11.0 onwards.

onSuccess callback is a must for this to work. Otherwise the step doesn't get forced where there is an existing session.
var onLoginRequest = function(context) {
    executeStep(1, {
        onSuccess: function(context) {

            executeStep(2, {
                stepOptions: {
                    forceAuth: 'true'
                }
            }, {
                onSuccess: function(context) {}
            });
        }
    });
};

This is available in IS 5.10.0 as well with wso2is-<IP_ADDRESS> and wso2is-km-<IP_ADDRESS>

Needs to be added to IS 6.0 docs as well

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!

This needs to be added to IS 6.0 and 6.1 docs.


Broken image in docs/Performance.md

https://facebook.github.io/react-native/releases/next/docs/performance.html
First image is broken.

Fix incoming.


OPSMAN_URI parameter likely redundant

The OPSMAN_URI parameter is likely to be redundant - in some of the pipeline steps it is derived as https://opsman.$ERT_DOMAIN, if by any chance a different OPSMAN_URI is provided the import-stemcell step fails as the url's don't match up. We should either use OPSMAN_URI at all places or remove OPSMAN_URI and derive the url.

@bijukunjummen so we would replace OPSMAN_URI with ERT_DOMAIN in all places where it is currently used?

Yes, I think so @ryanpei, OR make use of the OPSMAN_URI everywhere a opsman's url is required instead of deriving it as https://opsman.$ERT_DOMAIN. Former may be a good start though.

cool, I will close this issue in preference for the pcf-pipelines one since we moved our workloads there.
@krishicks should we just deprecate this repo in favor of what we now have in pcf-pipelines?


Installation/runtime memory requirements?

I'm trying to set up Ghost from sources on a small 512MB Centos7 x64 droplet on DigitalOcean.
However, I cannot execute npm install because seemingly I run out of memory and Linux kills npn. I believe I've got a swapfile configured on this VPS.
Is this expected? Just what is the minimum configuration required to install/configure/run a baseline Ghost instance?
Sep 18 14:02:43 ghost0 kernel: Out of memory: Kill process 3021 (npm) score 778 or sacrifice child
Sep 18 14:02:43 ghost0 kernel: Killed process 3021 (npm) total-vm:1532112kB, anon-rss:389168kB, file-rss:0kB
Sep 18 14:03:46 ghost0 su: (to root) cdr on pts/0

Thanks.
P.S. Quick update - turns out the swapfile wasn't correctly mounted on the VPS which explains the memory exception. Still curious about the answer to the original question however.

Closing as duplicate of #5107.

@sebgie would you please explain a bit further? I don't see how running out of memory on npm install related to #5107. Thanks.

@ChrisRus https://github.com/TryGhost/Ghost/issues/5107#issuecomment-140910614 and the following comment. DigitalOcean has a one-click install for Ghost which might be easier for you to set up.
Ghost, at this point, usually takes 80-90mb of memory when run.

@ChrisRus I referred to the problem @halfdan linked to. According to the DO forum this is common problem with npm (https://www.digitalocean.com/community/questions/npm-gets-killed-no-matter-what) and adding swap space should hopefully solve the problem. Glad you got it working :-).