"uniqueId" not compliant with Huawei App market Policies

Our App was rejected on Huawei AppGallery. Huawei detected that our App obtained ANDROID_ID during initialization, which is not allowed. From the stack information provided by them,

it is found that uniqueId is set in the getConstants method in your open source library, and the ANDROID_ID is obtained using the getUniqueIdSync method.
https://github.com/react-native-device-info/react-native-device-info/blob/0341ab5b5909a410d40d168832f415b93bd557be/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java#L192
In order to pass the review, we temporarily annotated the setting of uniqueId and used the getUniqueIdSync method instead in the React Native code.

I hope you can provide a better solution to solve this problem, thank you very much

I'm not familiar with the Huawei privacy policy, and it's an image here so I can't easily translate it to learn what their restrictions are, what is allowed, what is not allowed.
I can think of two solutions -
1- just making your workaround more permanent / easier to deal with for you and your team: use patch-package https://github.com/ds300/patch-package/ to save your patch
2- propose a PR here that removes it from constants for privacy reasons and we issue a breaking change here to release it. This could work for me, but only if I knew that would actually pass Huawei privacy guidelines (it would not make sense to issue a breaking change release if it still did not pass, right?)

I'm not familiar with the Huawei privacy policy, and it's an image here so I can't easily translate it to learn what their restrictions are, what is allowed, what is not allowed.
I can think of two solutions -
1- just making your workaround more permanent / easier to deal with for you and your team: use patch-package https://github.com/ds300/patch-package/ to save your patch 2- propose a PR here that removes it from constants for privacy reasons and we issue a breaking change here to release it. This could work for me, but only if I knew that would actually pass Huawei privacy guidelines (it would not make sense to issue a breaking change release if it still did not pass, right?)

This is the original:

尊敬的开发者，您好，
关于您的反馈的问题，用户同意隐私前获取了ANDROID_ID，可参考下方调用栈信息，请优化修改。
"stackTrace":["com.learnium.RNDeviceInfo.RNDeviceModule.getUniqueIdSync(RNDeviceModule.java:666)","com.learnium.RNDeviceInfo.RNDeviceModule.getConstants(RNDeviceModule.java:170)","com.facebook.react.bridge.JavaModuleWrapper.getConstants(JavaModuleWrapper.java:129)","com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)","android.os.Handler.handleCallback(Handler.java:955)","android.os.Handler.dispatchMessage(Handler.java:102)","com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)","android.os.Looper.loop(Looper.java:228)","com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)","java.lang.Thread.run(Thread.java:933)"]
To the effect, their policy requires users to agree to get ANDROID_ID before our app can get ANDROID_ID. At this time, the user has not had time to agree, and it is obtained during initialization. It is because the setting of uniqueId is caused in the getConstants method. I think you put the uniqueId in the getConstants method for a certain reason, so I'm not going to submit a PR, I'll fix it locally first.

Oh, that seems reasonable. I think back when we had it in constants is just from maybe 2015 or something, before anyone was really concerned about privacy and consent etc - I think the Huawei stance is reasonable and a PR to remove it from constants seems like a privacy-focused result, which is a good thing in my opinion. I have no problem issuing breaking changes, my policy is just that when I do, I will always make a nice release note so developers know exactly what is affected, why and what to do. Easy enough in this case. Version numbers are free

Any update about this issue?

@Fred0218 There plenty yesterday. I see them just above your comment. Does your browser not show them? Do you have a PR to propse?

@mikehardy Not sure it's worth filing a new issue or renaming this one, but we have the same issue on Google Play:

We’ve identified that your app is using the Segment SDK/Library which collects personal or sensitive data that includes but may not limited to Advertising ID, Android ID identifiers. We do not allow 3rd party SDKs to collect persistent device identifiers that may be linked to other personal and sensitive user data or resettable device identifiers.

I've recently resubmitted an app with a patched version of getUniqueIdSync() that returns an empty string instead, which passed the review ok. So I think there needs to be a decision how to deal with the removal of ANDROID_ID.
While reviewing some analytics packages, I've bumped into some comments from Bugsnag that dealt with this issue:

https://github.com/bugsnag/bugsnag-android/issues/83
Commit: https://github.com/bugsnag/bugsnag-android/commit/437b5de9aff9ba53f0f0dd637cdad35fd00d3f79

I believe we can implement a similar solution for people who still rely on this value, but the value would not be unique to the device anymore. This is a better alternative to removing the method completely.

@stawecki these seem slightly different. The OP here is saying "we can use the existing implementation, we just cannot do it at startup", that is: the solution is to remove it from constants.
You appear to be saying "we cannot use the current underlying unique ID implementation at all. That's news to me and seems separate. Related, but separate.
I don't see anything in the doc for ANDROID_ID that indicates it should be completely off limits, and it seems like a valid thing for a device info library to expose for those that really do need it. If there is some policy indicating how it should be handled, it would be nice to have a link to the full policy document so that any proposed change fully addresses it
Just to be clear: I am privacy-focused (I actually like these policies as a user) but I also believe that if something is available and can be used responsibly that it is not my job to self-censor / make it unavailable based on vague things if that makes sense? I need to see the real policy positions + clear rules in order to handle it well is all.

Okay - so (warning: assumptions ahead...) if it is out of constants, and a developer asserts that if they call it, they are doing it for those purposes (which are potentially legit purposes and may be done in react-native voip apps or system apps) then...it should pass that policy guidance?
I'm +1 for a PR that moves it out of constants - I haven't done it personally even though it's small because I'm running around launching 20 other releases on other packages but I can help merge of course

@mikehardy reasonable assumption to test :) I will try this by submitting a build with only the constants patched.
If that works, I'll try to get a PR ready.

@cauyyl I've tried a similar patch on Google Play and it worked fine. We're now trying removing from constants, so the ANDROID_ID can still be fetched, but only with explicit consent.

@fengqingyun2008 has posted what I would say is a preliminary PR for this but
a) we still do not have authoritative test results from google play store that this is sufficient
b) the PR is perhaps 10% of the work needed so either that PR needs to be thorough or someone else affected by this should check the review comment there and post a complete shift of the uniqueId out of constants to a regular getter

@mikehardy re: a) I have initial results of the submitted build with an identical change as #1428 and so far no issues with Google Play. I have another project that is affected, so I'll try that one as well. It seems this patch is correct and we can go ahead. If I see otherwise, I'll post here.

Great! One project is probably sufficient, so then what we need is a "complete 1428" - that is, actually remove it from constants consistently in all spots, then off we go I think

fork项目，然后修改android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java 修改804行 csdn 上有个哥们说把import改成require，我感觉不靠谱，我还是提审试一下，要是还过不了，我准备这么干
public String getUniqueIdSync() { return "no-android-id"; }

fork this project ,and edit android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java line 804 to， i am trying
public String getUniqueIdSync() { return "no-android-id"; }

worked for me

+1，Huawei failed to pass the audit due to the same problem

+1，Huawei failed to pass the audit due to the same problem

and CodePush

DO NOT +1, Please please :pray:
POST A PR then I can merge.
I left detailed comments on someone's attempte at #1428 - please read those and post a good PR and I can merge.
+1s are meaningless when it comes to open source, they actually have negative value because they make people look, and they make you feel like you did something but really nothing was done
But I can merge a PR and that's a real advance! Cheers


add api proxy route

seems like a nice thing to always have by default? https://sami.website/blog/SvelteKit-API-reverse-proxy
from https://twitter.com/samijaber_/status/1566855729692250112

hmm! yeah i dont mind it. i m not familiar with dom-to-image though, but its worth a shot, i always think a nice og image is a mark of polish on a website.

Yes OG image really polishes the site.
I did some more tests and realised we can do this with pure SVG instead using <foreignObject> no need for dom-to-image dependency either.
Not sure if OG image supports svg format though, so may be I need to find a way to serve SVG as png in svelte


[WIP] navigator simplify cruising speed handling

This moves cruise speed and throttle handling to the MissionBlock interface. Mission (a MissionBlock) has an implementation, but none of the other navigation modes currently do.

closes https://github.com/PX4/Firmware/issues/8073

Setting live in mission now works, but it should work in all position controlled modes.
Also, the info mavlink message should not be sent on every update.

@sanderux this PR is beyond saving with a rebase, ping me if you want to talk about resurrecting the simple change.

ping


CB-7063 tests could be skipped if developer find it flaky

when tests are could not be fixed, instead of removing or skipping the whole test ,developer can use skipWhenFail() or validate() at the end of the test code. skipWhenFail() let the test run as usual do all the reporting, but skip if exceptions were collected during the run.
If the test or functionality fixed skipWhenFail() easily may swap with validate().

retest please


Feature Request

Specific Resources of AWS to Convert to Terraform
For example currently our command would be like
" terraforming s3 Bucket-Name "
Or this could be list of properties (for specific list of resources)

I think it has some overlapping with this issue, https://github.com/dtan4/terraforming/issues/79


Fixed missing leading zero issue on SlurmClusterResolver

This PR is to fix the issue in #49956, also add an unit test for this condition.

Hi @rxsang Can you please review this PR ? Thank you!


🚀 Feature: Custom branding

🔖 Feature description
Custom branding allows the admin to customize Pingvin Share. This could include:

Custom logo
Custom name
Custom color

To implement this, the configuration page needs a rework to prevent a confusing configuration page. I thought about a sidebar where you can choose the different configuration categories.
🎤 Pitch
This allows individuals or companies to fit Pingvin Share to their brand.

How can I customize Pingvin Share?

@Macthepig Currently not as it is not implemented yet.

Released in v0.11.0


ProxyConfiguration not respected in<EMAIL_ADDRESS>

Hi,
I think I found the following bug:
Describe the bug
When using the package @sap-cloud-sdk/connectivity in version 3.7.0 I noticed, that requests to an on-Premise system (through the cloud connector) were not resolved correctly.
The package doesn't take the proxy settings from destinations into account.
When the request was executed I was confronted with the error message: "ENOTFOUND onPremise System-Id".

To Reproduce
To reproduce the behaviour it should be enough to try to consume an onPremise Service through the use of the destination / connectivity service.

Expected behavior
The proxy settings from the destinations configuration should be taken into account.

Screenshots
I compared an earlier version of my application with the new one and found the following code snippets that show the problem.
<EMAIL_ADDRESS>Function getAgentConfig:
In the following picture you can see that the destination with the proxy settings and an empty certificateOptions object is passed to the proxyAgent function.

Function proxyAgent:
In here you can see at line 176-181 that an agentConfig object is created which takes in the proxyConfiguration.
The agentConfig object is then used to create a proxyAgent later.

<EMAIL_ADDRESS>Function getAgentConfig
In the following picture we can see that the code changed a little, but it still passes the destination with proxySettings and an empty certificateOptions object to the createAgent function.

Function createAgent
In the createAgent function however, we can see that the destination is only used to evaluate if we need an https or http Agent.
To create the agent, only the empty options (certificateOptions) object is respected.
This causes the resulting agent to not be a proxyAgent.

Used Versions:
<EMAIL_ADDRESS>I think the bug was introduced however with version 3.6.0 (see release Notes)

Impact / Priority
The impact on my project is, that I can only use an older build of my application, since I don't use @sap-cloud-sdk/connectivity directly.
Instead I'm only using<EMAIL_ADDRESS>but this package depends on the connectivity package with the semver: ^3.1.1 which causes to load the package with the bug described above.

Affected development phase: Release
Impact: Impaired
Timeline: Go-Live is in a couple of weeks.
If you need further info, feel free to reach out
Best regards
Jan

UPDATE:
I analyzed my project a little further and it seems that there actually isn't a bug in<EMAIL_ADDRESS>I noticed, that in my package.json I refer to<EMAIL_ADDRESS>(notice that no ^ is used).
The http-client package in turn uses connectivity with ^3.1.1.
Since I pinned my version to 3.1.1 but the package itself doesn't pin the version of the connectivity package, during installation I ended up with:
@sap-cloud-sdk/http-client: 3.1.1
@sap-cloud-sdk/connectivity: 3.7.0
These two in combination are incompatible, since the http-client @3.1.1 doesn't have this line yet:

I'm not sure however if this is something that needs to be fixed or not, so I'm leaving this open for now.
Best regards

Hey @muellinho, thank you for your thorough investigation. It seems that we accidentally introduced a breaking change in version 3.6.0. We discussed this extensively and whether we should fix this to make it backwards compatible. We have quite a simple, but ugly fix in on SDK side in mind. However, this issue is quite easy to fix for users as well, by just updating the version to 3.6.0 or higher.
Therefore my proposal is the following: We will add a compatibility note on this issue, stating that users should update to the latest version, but we won't fix it for now. If this issue pops up again we will reconsider fixing it for backwards compatibility.
Is that an ok solution for you?
I apologize for the inconvenience!

Hey @marikaner,
yes that's fine for me.
I already updated my project to use compatible versions of the two packages :)
Thanks

Thank you!


[WIP] Update purge private data tests

Additional test to confirm deleted data can be purged
Signed-off-by: James Taylor<EMAIL_ADDRESS>

Closing after discussion with @denyeart and @manish-sethi


OneSignal do not detects Player ID changes

When we delete a WP user on the OneSignal back-office, the application register again but keep using the old player ID stored in the application settings.

Thanks for the report. The delete button the dashboard is designed to clear up old test devices. It should not be used in production. However we look into getting a new id when we detect this in the SDK.


Add a Gitter chat badge to README.md

JScott/cardboard-controls now has a Chat Room on Gitter
@JScott has just created a chat room. You can visit it here: https://gitter.im/JScott/cardboard-controls.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

 Manually did it instead.


Update README.md

The mispronunciation just slightly bothers me
Great profile though, hope this is a basis for a new collab or something in the future

Oh, Thanks for your attention

sorry for the late reply


Is it possible to disable/enable drag and drop field?

Hi @rosnaib11
There is nothing native but if you google 'dropzonejs disable drag drop' then you get several results containing ideas, for example this or this.
Let us know how you get on.


Data not appearing during previews

Versions

gatsby-source-prismic: ^4.1.0
gatsby-plugin-prismic-previews: ^4.1.0
node: 14.x (vercel)

Problem
The preview feature is displaying just the layout component (navbar & footer) without the slices which are inside of the page. The routing of link-resolver seems to work just fine but isn't displaying the information that it should do.
Here is a list with my configuration:

page.tsx (template)

import React from "react"
import { graphql } from "gatsby"
import { withPrismicPreview } from "gatsby-plugin-prismic-previews"
import { SliceZone } from "../slices/slice-zone"
import { Layout } from "../components/Layout"
import SEO from "../components/seo"
import { repositoryConfigs } from "../utils/prismicPreviews"

interface IPage {
  data: any
}
const Page = ({ data }: IPage) => {
  if (!data) return null
  const { prismicPage } = data
  return (
    <Layout>
      <SEO
        seoData={{
          data: {
            seoTitle: prismicPage.data.seoTitle,
            seoDescription: prismicPage.data.seoDescription,
          },
          url: prismicPage.uid,
        }}
      />
      <SliceZone slices={prismicPage.data.body} />
    </Layout>
  )
}

export const query = graphql`
  query PageQuery($uid: String) {
    prismicPage(uid: { eq: $uid }) {
      _previewable
      uid
      data {
        seoTitle: seo_title
        seoDescription: seo_description
      }
      ...MainHeroInfo
      ...HeroImageTextInfo
    }
  }
`

export default withPrismicPreview(Page, repositoryConfigs)

package.json

{
  "name": "gatsby-starter-chakra",
  "private": true,
  "description": "Gatsby Starter: Chakra UI with all essentials tools for a new customer",
  "version": "0.0.1",
  "license": "MIT",
  "author": "Luis Kunz<EMAIL_ADDRESS>  "scripts": {
    "build": "gatsby build",
    "develop": "gatsby develop",
    "dev": "gatsby develop -o",
    "serve": "gatsby serve",
    "clean": "gatsby clean",
    "format": "prettier \"**/*.{md,mdx,yml}\" --write",
    "tsc": "tsc",
    "type-check": "tsc --noEmit",
    "lint": "eslint . --ignore-path .gitignore --ext .ts,.tsx,.js",
    "lint:fix": "yarn lint --fix"
  },
  "dependencies": {
    "@browniebroke/gatsby-image-gallery": "^6.2.1",
    "@chakra-ui/gatsby-plugin": "^2.0.0",
    "@chakra-ui/icons": "^1.0.13",
    "@chakra-ui/react": "^1.6.1",
    "@chakra-ui/theme-tools": "^1.1.7",
    "@emotion/react": "^11",
    "@emotion/styled": "^11",
    "babel-plugin-styled-components": "^1.12.0",
    "dotenv": "^8.2.0",
    "framer-motion": "^4",
    "gatsby": "^3.3.1",
    "gatsby-image": "^3.3.0",
    "gatsby-plugin-catch-links": "^3.3.0",
    "gatsby-plugin-gdpr-cookies": "^2.0.0",
    "gatsby-plugin-google-gtag": "^3.3.0",
    "gatsby-plugin-image": "1.12.0",
    "gatsby-plugin-lodash": "^4.3.0",
    "gatsby-plugin-manifest": "^3.3.0",
    "gatsby-plugin-offline": "^4.3.0",
    "gatsby-plugin-prismic-previews": "^4.1.0",
    "gatsby-plugin-react-helmet": "^4.3.0",
    "gatsby-plugin-sharp": "^3.7.1",
    "gatsby-plugin-sitemap": "^3.3.0",
    "gatsby-source-filesystem": "^3.3.0",
    "gatsby-source-prismic": "^4.1.0",
    "gatsby-transformer-sharp": "^3.7.1",
    "js-cookie": "^2.2.1",
    "lodash": "^4.17.21",
    "prismic-reactjs": "^1.3.4",
    "prop-types": "^15.7.2",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-headroom": "^3.1.1",
    "react-helmet": "^6.1.0",
    "react-icons": "^4.2.0",
    "react-player": "^2.9.0",
    "react-responsive-carousel": "^3.2.18",
    "react-typography": "^0.16.19",
    "ts-node": "^10.0.0",
    "typeface-montserrat": "^1.1.13",
    "typeface-nunito": "^1.1.13",
    "typeface-proza-libre": "^1.1.13",
    "typography": "^0.16.19"
  },
  "devDependencies": {
    "@types/node": "^15.6.1",
    "@types/react": "^17.0.8",
    "@types/react-dom": "^17.0.5",
    "@typescript-eslint/eslint-plugin": "^4.25.0",
    "@typescript-eslint/parser": "^4.25.0",
    "eslint": "^7.27.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-prettier": "^8.3.0",
    "eslint-plugin-import": "^2.23.4",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-prettier": "^3.4.0",
    "eslint-plugin-react": "^7.24.0",
    "eslint-plugin-react-hooks": "^4.2.0",
    "gatsby-plugin-webpack-bundle-analyser-v2": "^1.1.22",
    "prettier": "^2.3.0",
    "typescript": "^4.3.2"
  },
  "keywords": [
    "gatsby",
    "chakra",
    "ui",
    "chakra ui"
  ]
}

gatsby-config.js

require(`ts-node`).register({ transpileOnly: true, files: true })

require(`dotenv`).config({
  path: `.env`,
})

const config = require(`./config/website`)
const layout = require(`./prismic/layout.json`)
const homepage = require(`./prismic/homepage.json`)
const page = require(`./prismic/page.json`)

module.exports = {
  siteMetadata: {
    siteUrl: config.siteUrl,
    title: config.title,
    description: config.siteDescription,
    keywords: [`keywords`],
    author: config.author,
    canonicalUrl: config.siteUrl,
    image: config.siteLogo,
    organization: {
      name: config.organization,
      url: config.siteUrl,
      logo: config.siteLogo,
    },
  },
  plugins: [
    `gatsby-plugin-react-helmet`,
    `@chakra-ui/gatsby-plugin`,
    `gatsby-plugin-image`,
    `gatsby-plugin-sharp`,
    `gatsby-transformer-sharp`,
    {
      resolve: `gatsby-plugin-manifest`,
      options: {
        name: `Client Name`,
        short_name: `Client Name`,
        lang: `en-gb`,
        start_url: `/`,
        background_color: `#f97316`,
        theme_color: `#f97316`,
        display: `standalone`,
        icons: [
          {
            src: `/favicons/android-chrome-192x192.png`,
            sizes: `192x192`,
            type: `image/png`,
          },
          {
            src: `/favicons/android-chrome-512x512.png`,
            sizes: `512x512`,
            type: `image/png`,
          },
        ],
      },
    },
    {
      resolve: `gatsby-source-prismic`,
      options: {
        repositoryName: `client-repo`,
        accessToken: process.env.PRISMIC_API_KEY,
        // eslint-disable-next-line global-require
        linkResolver: require(`./src/utils/link-resolver`).linkResolver,
        schemas: {
          layout,
          homepage,
          page,
          ...
        },
        imageImgixParams: {
          auto: `compress,format`,
          fit: `max`,
          q: 50,
        },
        imagePlaceholderImgixParams: {
          w: 100,
          blur: 15,
          q: 50,
        },
      },
    },
    {
      resolve: `gatsby-plugin-prismic-previews`,
      options: {
        repositoryName: `client-repo`,
        accessToken: process.env.PRISMIC_API_KEY,
      },
    },
    {
      resolve: `gatsby-plugin-google-gtag`,
      options: {
        trackingIds: [config.googleAnalyticsID],
        pluginConfig: {
          head: true,
          exclude: [`/404/*`, `/preview/*`, `/en/imprint`, `/impressum`],
        },
      },
    },
    {
      resolve: `gatsby-plugin-sitemap`,
      options: {
        exclude: [`/en/offline-plugin-app-shell-fallback`, `/imprint`, `/en/imprint`],
      },
    },
    {
      resolve: `gatsby-plugin-gdpr-cookies`,
      options: {
        googleAnalytics: {
          trackingId: config.googleAnalyticsID, // leave empty if you want to disable the tracker
          cookieName: `gatsby-gdpr-google-analytics`, // default
          anonymize: true, // default
          allowAdFeatures: false, // default
        },
        // defines the environments where the tracking should be available  - default is ["production"]
        environments: [`production`, `development`],
      },
    },
    `gatsby-plugin-lodash`,
    `gatsby-plugin-catch-links`,
    // `gatsby-plugin-webpack-bundle-analyser-v2`,
    `gatsby-plugin-offline`,
  ],
}

link-resolver.js

exports.linkResolver = (doc) => {
  if (doc.isBroken) {
    return `/404`
  }
  if (doc.type === `homepage`) {
    return `/`
  }
  if (doc.type === `page`) {
    return `/${doc.uid}`
  }

  // Backup for all other types
  return `/`
}

preview.js

import * as React from "react"
import { withPrismicPreviewResolver } from "gatsby-plugin-prismic-previews"
import { repositoryConfigs } from "../utils/prismicPreviews"

const PreviewPage = ({ isPreview }) => {
  if (isPreview === false) return `Not a preview!`

  return
Loading...

}

export default withPrismicPreviewResolver(PreviewPage, repositoryConfigs)

prismicPreviews.tsx

/**
 * This file contains configuration for `gatsby-plugin-prismic-previews` to
 * support preview sessions from Prismic.
 *
 * @see https://prismic.io/docs/technologies/previews-gatsby
 */

import { linkResolver } from "./link-resolver"

/**
 * Prismic preview configuration for each repository in your app. This set of
 * configuration objects will be used with the `withPrismicPreview` and
 * `withPrismicUnpublishedPreview` higher order components.
 *
 * If your app needs to support multiple Prismic repositories, add each of
 * their own configuration objects here as additional elements.
 *
 * @see https://prismic.io/docs/technologies/previews-gatsby#1.-update-content-pages-and-templates
 */
export const repositoryConfigs = [
  {
    repositoryName: `michaelbernegger`,
    linkResolver,
  },
]

Things I tried
https://community.prismic.io/t/troubleshooting-previews/5449
Test in the Graphql browser:
When I send the data using the ModHeader I do receive the preview data, meaning that something is wrong in my code (which I am still struggling to find).
The rest of the solutions I did try without any success, in fact, I know that something is wrong in my code which I can't figure out for 3 days.
Browsers
I try in: Firefox, Brave & Safari. (I try cleaning the cache & cookies several times)
Infinite bucle inside of console inspector --- Network tab
Screenshot of Console
This bucle keeps going every 1-2s, I can't figure out what it does.
Conclusion
I have tried many solutions and I have seen the repos which are working perfectly fine and I still I can't find what am I missing. In advance, I will be really grateful to receive any help as small as it could be!
Best regards,
Luis

Hey @luiskunz, I'll try to help as much as possible! :)
To confirm, does everything work normally when you are not previewing?
I notice you are using GraphQL aliases in your page template query:
  query PageQuery($uid: String) {
    prismicPage(uid: { eq: $uid }) {
      _previewable
      uid
      data {
        seoTitle: seo_title
        seoDescription: seo_description
      }
      ...MainHeroInfo
      ...HeroImageTextInfo
    }
  }

During previews, aliases are not supported. If you are using aliases in your Slice queries, that could cause the issue you are describing.
Basically, if you use an alias, you would be accessing the data using the alias's name, such as seoTitle. During the preview, however, it is only available at the non-aliased name, such as seo_title. Could you try rewriting your queries and components to remove aliases?
For more details on limitations when previewing, see this document: https://github.com/prismicio/prismic-gatsby/blob/main/packages/gatsby-plugin-prismic-previews/docs/limitations.md
Regarding the recurring GET request to /ping: This recurring request comes from the Prismic Toolbar. It polls the Prismic API for updates to your document. When it sees you have saved a new version of your previewed document, the page will refresh with your new content.
In other words, this is normal. 🙂

Hey Angelo,
Thank you so much for your help, indeed the problem was the GraphQL aliases. I just finished reconverting all the aliases and I have to change the variables names in Prismic and also in the code. It was long work due that I had many variables which were conflicting with each other.
Regarding the loop, it does make sense. Thank you so much Angelo!
Big hug,
Luis

Hey @luiskunz, I'm glad to hear it's working! I'll look into how we can update the documentation on https://prismic.io to include the preview limitations. Hopefully we can share this information sooner so others don't need to go through the same converting process you went through.
Thanks for sharing your experience! 🙂


es6-shim.js Not included in the lib/dist/folder

I can't seem to make it pass the loading phase.  All I get is 404 on the es6-shim.js

Strange, it sounds like perhaps the default gulp task didn't complete correctly when the generator ran.
You should have seen something similar to the image below at some point.

If not then it'd be interesting to know if you can replicate this consistently when running the generator and if there's an error message, if you could provide some more information that'd be great.
In the meantime you can run gulp if you have gulp installed globally or ./node_modules/.bin/gulp if not, that'll import all the required dependencies.
Any further issues let me know.

Thanks, running gulp solved it for me. This was caused by my lack of experience with gulp.

No problem, glad you managed to get things working!


Non-existent groups

When debugging the bokeh issue, I came across something else. After using the evagram-input tool to send new plots to the local database, it seems that one of the variables has an association with groups that it shouldn't. Changing the drop down to the variable with incorrect groups throws an error.
This variable is correct and has the expected group associations

But then this one has added group associations

Is this an issue with the relationship between variables and groups?

@tariqhamzeyssai


style: fix responsive on experience example section

Pull Request Test Coverage Report for Build 599

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

Totals

Change from base Build 586:
0.0%

Covered Lines:
1243

Relevant Lines:
1539

💛  - Coveralls


After Reinitializing NimBLE, unable to adveritise with BLE_OWN_ADDR_RPA_RANDOM_DEFAULT or BLE_OWN_ADDR_RANDOM (IDFGH-3817)

Environment

IDF version: 4.0.1
Build System: cmake

Problem Description
During my applications runtime, sometimes we deinit and reinit bluetooth for memory reasons. After reinit, it seems that we are unable to call ble_gap_adv_start with either an RPA_RANDOM or RANDOM mac address without it returning an error (530).
PUBLIC mac addresses do not have this issue.
Expected Behavior
can call ble_gap_adv_start with RPA_RANDOM or RANDOM mac addresses and successfully advertise
Actual Behavior
cannot call ble_gap_adv_start with RPA_RANDOM or RANDOM mac addresses and successfully advertise
Steps to reproduce

tear down nimble as recommended in the docs here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/nimble/index.html#_CPPv436esp_nimble_hci_and_controller_deinitv
reinit using the docs here: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/nimble/index.html#_CPPv434esp_nimble_hci_and_controller_initv
attempt to advertise with RPA_RANDOM or RANDOM

Code to reproduce this issue
I can provide code if necessary, but it'll take some work to pull it out of my application.

Hi @sebirdman, As I understand there are two part to the answers, one for RANDOM and second for RPA address type.
1. RANDOM:

If you want to advertise with addr_type as RANDOM (BLE_OWN_ADDR_RANDOM),  please set random address using ble_hs_id_set_rnd API. You may want to generate random address using ble_hs_id_gen_rnd.

2. RPA (RPA_PUBLIC/ RPA_RANDOM):

To use privacy feature for NimBLE host on ESP32, we need to call ble_hs_pvcy_rpa_config in Host-Controller sync callback(or after). For detailed documentation of this API, refer: https://github.com/espressif/esp-nimble/blob/nimble-1.2.0-idf/nimble/host/include/host/ble_hs_pvcy.h#L66).
Please use own_addr_type as BLE_OWN_ADDR_RANDOM while using host based privacy. We do not use addr_types BLE_OWN_ADDR_RPA_PUBLIC_DEFAULT and BLE_OWN_ADDR_RPA_RANDOM_DEFAULT in host based privacy.
You may want to add BLE_SM_PAIR_KEY_DIST_ID in key distributions of ble_hs_cfg (sm_our_key_dist & sm_their_key_dist).

Please let me know if you still face any issue.

hi @prasad-alatkar, thanks for the fast response

Random:

I'm currently setting and generating a random address every time right after i initialize the Bluetooth stack. this includes during re-initialization.

RPA:

That makes sense. Our firmware is not yet using RPA, but when i found this bug i tried all the different address types to see which one worked and this one didn't work.
I should note that ALL the address types work after the first bluetooth stack init, after the second is only when these two stop working.

Hi @sebirdman , I tried to reproduce the scenario, but did not face any issue with setting RANDOM address after multiple NimBLE re-init cycles. I am attaching sample patch for your reference based on bleprph example: Sample_patch_for_random_address_after_re-init.txt . Please let me know if it helps you resolve the issue. If you still face the issue, Can you please provide sample patch to reproduce the issue ? If sharing code may take time, is it possible for you to share debug logs for the issue ?

@sebirdman , Can you please provide current update ? Did above shared patch help resolve the issue ?

@sebirdman Thanks for reporting, would you please help share if any updates for this issue? Thanks.

@sebirdman Could you please help to confirm if the patch was helpful to resolve the issue ?

@sebirdman Could you please help to confirm if the patch was helpful to resolve the issue ?

I've not been able to reproduce this in some time without the patch. i suspect i was doing something odd.

I've not been able to reproduce this in some time without the patch. i suspect i was doing something odd.

Thanks for sharing the updates.

Thanks for sharing the updates.


bug: starknet avatar resolver still returning the default avatar

See https://snapshot.box/#/sn:0x07c251045154318a2376a3bb65be47d3c90df1740d8e35c9b9d943aa3f240e50/delegates
Users without any avatar should be from blockies, and not showing the starknet default avatar.
Should look into why the previous PR https://github.com/stamp-labs/stamp/pull/259 is not resolving the issue anymore

Confirming it's now being solved


Can't interact/break pylons

Mod pack: ATM 8 (1.19.2)
pylons version: 1.19.2-3.1.0
There seems to be no errors, how do I debug this?

You can only break/interact with pylons placed by you, unless you're in creative.

Can I disable that feature somehow? We are playing as a team (3-4 players) and we occasionally need to interact with each others farms.

I'm looking into adding FTB Teams support with a toggle to switch between player-only and team access. Let me know if this would work for your situation.

That would be perfect. Thank you for your time and efforts.

Team support was released in 3.2.0 for 1.19/4.1.0 for 1.20.


cli_send_recv() encounters timeout during multiple thread accessing.

1.[Title fromat]
static int cli_send_recv() in commands.c encounters timeout for sending the RPC expired error during multiple thread accessing.
2.[Issue description]
Our program forks two processes to independently call commands API that triggers cli_send_recv() such as cmd_editconfig or cmd_getconfig to interact with the same NETCONF server session. There were sometimes(not always) possibilities for the caller to show the following error message:

Timeout for receiving a reply expired.
Unexpected reply received - ignoring and waiting for the correct reply.

3.[issue log]
APP_1       | cli_send_recv: Timeout for receiving a reply expired.
APP_1       | [error][APP] fail to editconfig test.xml to NETCONF SERVER
APP_1       | nc ERROR: Session 2: received a <rpc-reply> with an unexpected message-id "96".
APP_1       | cli_send_recv: Unexpected reply received - ignoring and waiting for the correct reply.

4.[our validation]
In terms of consequentialism, NETCONF server had received correct configuration. However, the log shows cli_send_recv: Timeout for receiving a reply expired. which is a bit ambiguous to us.
In the first timeout case, cli_send_recv() return -1 since the message type created from session is NC_MSG_WOULDBLOCK. In Miscellaneous macros types provided by libnetconf2, it represents a timeout return value. While in the second case(Unexpected reply received), the session replies NC_MSG_REPLY_ERR_MSGID, which means  message with missing or wrong message-id attribute value.
After tracing the code, one assumption ran into us that the session argument in nc_send_rpc() is a global variable, which is defined in line 73. We wish to contribute a pull request which add pthread_mutex_lock in commands.c to prevent session from being referred too rapidly during multi-threading and thus cause the issue.

netopeer2-cli is a (mostly, ignoring notifications) single-threaded application so I am not sure why calling an internal function in multiple threads is supposed to work. Similarly, you can make whatever changes you want but do not create a pull request, there is nothing to be fixed in the CLI. It is generally meant to be a usable CLI so that no 3rd party clients are needed to perform basic tasks. However, if you want a full-fledged NETCONF client, you should either use some other implementation (there are lots) or write your own using libnetconf2. Our CLI is limited in some ways, especially as far as threads are considered.


Cannot download Symbol

Hi,
We have two container running of BC on prem on Azure VM

Container1 - Developer Port is 7049
Container2 - Developer Port is 5050

Both the container are accessible from WebClient and Developer Environment.
In AL symbols can be downloaded
In AL when using Container2 with port 5050, it gives below error.
launch.json file
{
"version": "0.2.0",
"configurations": [
{
"type": "al",
"request": "launch",
"name": "Your own server",
"server": "https://bc2app.southeastasia.cloudapp.azure.com",
"port": 5050,
"serverInstance": "NAV",
"authentication": "UserPassword",
"startupObjectId": 22,
"startupObjectType": "Page"
}
]
}
Sending request to https://bc2app.southeastasia.cloudapp.azure.com:5050/NAV/dev/packages?publisher=Microsoft&appName=System&versionText=<IP_ADDRESS>
[2018-10-17 23:32:32.71] Error: An error occurred while sending the request.
Unable to connect to the remote server
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond <IP_ADDRESS>:5050

Did you clear credentials cache? (Ctrl+Shift+P, type clear credentials)

Yes, tried clearing the credential cache. But same error.

Conatiner 2 is using SSL also? I had that issue before.
I assume you restarted the container. Are both containers the same version?
Hopefully someone in the loop here will help you better.

Issues related to navcontainerhelper or docker should be filed on https://github.com/microsoft/navcontainerhelper or https://github.com/microsoft/nav-docker.
Please test your installation using this: https://blogs.msdn.microsoft.com/freddyk/2017/10/29/troubleshooting-nav-on-docker/ or using this script http://aka.ms/debug-containerhost.ps1
and if that doesn't resolve your issue, create a new issue in the right repo.


fix(indent-o-matic): better autocmds for new files

Hi! @Darazaki - This small contribution is to replace the autocmd for new files with the most optimal ones.
Signed-off-by: Wuelner Martínez<EMAIL_ADDRESS>

Hi and sorry for the wait! Looks like a good idea thanks :)


buildMozillaMach: Add distribution identifier and distribution.ini

Description of changes
From what I understand this should allow crash-stats.mozilla.org to group by our distribution id. And it might also expose other nixos/nixpkgs fields from distribution.ini via telemetry.

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Visible here:


MNT: rerender and bump build number

Hi! This is the friendly automated conda-forge-webservice.
I've rerendered the recipe as instructed in #8.
Here's a checklist to do before merging.

[ ] Bump the build number if needed.

Fixes #8

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

I'm not too sure why the hugin recipe is failing to find this package for osx-arm64
https://github.com/conda-forge/hugin-feedstock/pull/35

adding "make" is enough for me to want to refresh. tbh, this is the first time i see this kind of error in cross compiling. I'm attributing it to the package being lost because it was so "old".


Clarify instructions for python easy task

Changed instructions in the task comments
Currently it reads:
# TODO: Create the Simple Python Program to Interact with Lists
I propose:
# TODO: Create a Simple Python Program that:
# lists the first 10 natural numbers
# prints that list to the console and,
# prints the sum of the numbers of that list
Simple clarification
This is in reference to Issue #853

Merged

This is an automated message from Fork, Commit, Merge [BOT].

Thank you for your contribution! Your pull request has been merged. The files have been reset for the next contributor.
What's next?
If you're looking for more ways to contribute, I invite you to check out my other projects. Just click here to find more. These projects contain real issues that you can help resolve. You can also check out the Influences section in the README to find more projects similar to this one.
Also please leave a star to this project if you feel it helped you, i would really appreciate it.
I look forward to seeing your contributions!


Failure to communicate with K8s API removes app from router

The controller failed to connect to the K8s API during a deploy (a ECONNRESET when checking whether the namespace exists as far as I can tell). Note that the app was already running, the problem occurred during a deploy of a new version of an app.
As a result, the app got removed from the router somehow and trying to access it via its URL resulted in a 404. When I checked the nginx.conf of the router, there was indeed no entry for the app.
Stack trace:

ERROR There was a problem retrieving data from the Kubernetes API server. URL: https://<IP_ADDRESS>:443/api/v1/namespaces/segsift, params: {}
ERROR:root:failed to create Namespace segsift: 409 Conflict namespaces "segsift" already exists
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 391, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 387, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.5/socket.py", line 575, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 261, in recv_into
raise SocketError(str(e))
OSError: (104, 'ECONNRESET')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 423, in send
timeout=timeout
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 643, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/util/retry.py", line 334, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 594, in urlopen
chunked=chunked)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 391, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/connectionpool.py", line 387, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.5/http/client.py", line 1197, in getresponse
response.begin()
File "/usr/lib/python3.5/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.5/http/client.py", line 258, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.5/socket.py", line 575, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.5/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 261, in recv_into
raise SocketError(str(e))
requests.packages.urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(104, 'ECONNRESET')",))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/scheduler/__init__.py", line 171, in http_get
response = self.session.get(url, params=params, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 501, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 488, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/requests/adapters.py", line 473, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(104, 'ECONNRESET')",))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/app/api/models/app.py", line 194, in create
self._scheduler.ns.get(namespace)
File "/app/scheduler/resources/namespace.py", line 22, in get
response = self.http_get(url, params=self.query_params(**kwargs))
File "/app/scheduler/__init__.py", line 177, in http_get
raise KubeException(message) from err
scheduler.exceptions.KubeException: There was a problem retrieving data from the Kubernetes API server. URL: https://<IP_ADDRESS>:443/api/v1/namespaces/segsift, params: {}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/api/models/app.py", line 196, in create
self._scheduler.ns.create(namespace)
File "/app/scheduler/resources/namespace.py", line 44, in create
raise KubeHTTPException(response, "create Namespace {}".format(namespace))
scheduler.exceptions.KubeHTTPException: failed to create Namespace segsift: 409 Conflict namespaces "segsift" already exists
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 474, in dispatch
response = handler(request, *args, **kwargs)
File "/app/api/views.py", line 527, in create
super(BuildHookViewSet, self).create(request, *args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/mixins.py", line 21, in create
self.perform_create(serializer)
File "/app/api/viewsets.py", line 20, in perform_create
obj = serializer.save(owner=self.request.user)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/serializers.py", line 214, in save
self.instance = self.create(validated_data)
File "/usr/local/lib/python3.5/dist-packages/rest_framework/serializers.py", line 902, in create
instance = ModelClass.objects.create(**validated_data)
File "/usr/local/lib/python3.5/dist-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 399, in create
obj.save(force_insert=True, using=self.db)
File "/app/api/models/build.py", line 119, in save
self.app.scale(self.owner, removed)
File "/app/api/models/app.py", line 356, in scale
self.create()
File "/app/api/models/app.py", line 219, in create
raise ServiceUnavailable('Kubernetes resources could not be created') from e
api.exceptions.ServiceUnavailable: Kubernetes resources could not be created
<IP_ADDRESS> "POST /v2/hooks/build/ HTTP/1.1" 503 54 "deis-builder"

The only way the app would be removed from the router would be if the service for said app was no longer available. I have a feeling this is more of a hiccup between the router and the apiserver. Can you check the router logs and see if there's confirmation of that?

I'm going to close this ticket due to inactivity, but please re-open if this still needs to be addressed. Thanks!


[firebase_auth] Flutter + Firebase Apple Sign In Integration?

My app just got denied for allowing Google sign in but not Apple sign in. Are there any updates on Firebase support for Apple sign in with Flutter?

Any updates on this? Does a workaround exists? I also got an app rejected and my client is pressing me to solve the issue asap.

Firebase also now supports sign in with apple, so this needs to be added to the Flutter firebase_auth package. Here are the links for each platform.
iOS
Android
Web

Looks like there is a open PR that someone is working on. #1526


Wrong link to 'create Anomaly Detector'

[Enter feedback here]

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

ID: a359bfb9-716c-1fcc-97e3-8745ee331363
Version Independent ID: 3cacf1b3-8cbc-e5dc-c171-8cc4430efdd2
Content: Quickstart: Prerequisites for Cognitive Services in Azure Synapse Analytics - Azure Synapse Analytics
Content Source: articles/synapse-analytics/machine-learning/tutorial-configure-cognitive-services-synapse.md
Service: synapse-analytics
Sub-service: machine-learning
GitHub Login: @NelGson
Microsoft Alias: negust

@jr-MS Thank you for sharing feedback. We are actively validating it. We will share updates soon.

Created PR for this. https://github.com/MicrosoftDocs/azure-docs-pr/pull/186126

PR merged. Changes will reflect in document in next cycle of build release soon. Thank you.


-n Range

Why not do it so that the subtracted range extends from 1 to FFFFFFFFFFFFF?
For example 1:FFFFFFFFFFFF
The size N subtracted within this range does not start from 1, but starts from a number close to (FFFFFFFFFFFF).
Can you do this starting from 1? Can't we logically increase the probability that way?

Can't we logically increase the probability that way?

Any number of subtracted keys increase the possibility.
The program calculate the length of the range this is:
length = End range - start range
And the it make a division of Length between the number of N this is something like a segment or to be more exact this is the number to add and subtract from the target key so every key will be
target  + 1length
target  - 1length
target  + 2length
target  - 2length
target  + 3length
target  - 3length
...
target  + (N+1)*length
target  - (N-1)*length


Bump Microsoft.Data.SqlClient from 2.1.2 to 5.0.1  + FIX TESTS

@damianh Could you review and approve?


Add MariaDB hints

Hi,
I've tested the hints in a two simple JPA applications against a local and a managed MariaDB in azure (by adding the hints directly to the main class) and it worked without problems.
I've tried to add a MariaDB configuration to the petstore-jpa sample in this repo but the build failed with connectivity issues to the docker database(java.sql.SQLException: null,  message from server: "Host '<IP_ADDRESS>' is not allowed to connect to this MySQL server").
Therefore I've dropped the changes in the sample application and just committed the hints.

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

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

@cschaible Thank you for signing the Contributor License Agreement!

I've created a repo with a simple sample app where the hints are used (by adding the hints directly to the main class). The code can be found here.

Thanks, merged via 5df5f1d6cc35c66f1aca97054d7762ad20555ebf, I modified your commit to reference the hint from META-INF/services/org.springframework.nativex.type.NativeConfiguration.


IAM_USER_USED_LAST_90_DAYS - No results available

Hello
I'm trying to use the lambda IAM_USER_USED_LAST_90_DAYS.py to obtain user list with last connexion > 90 days but nothing goes up to AWS Config, when trying to re-evaluate my config rule, i get a "No results available" while I have some accounts that are matching the rule.
I've set-up my lanbda with a role containing policies allowing me :

to check iam users
to write to aws config

Is there something that I'm missing ?
Thx
WiLL

Hi WiLL, I see 2 possibilities:

The IAM service is usually a bit slower to record the resources in Config (takes about 15 min). You might check it now, and it could work.
The code has some challenges, and I am happy to help to debug. Can you post the Cloudwatch logs of your lambda function?
Cheers,
Jon

hi thx for your help !
Nothing really relevant in cloudwatch logs :
START RequestId: f0f677f3-cffd-11e8-a497-XXX Version: $LATEST
END RequestId: f0f677f3-cffd-11e8-a497-XXX
REPORT RequestId: f0f677f3-cffd-11e8-a497-XXX Duration: 460.91 ms Billed Duration: 500 ms Memory Size: 128 MB Max Memory Used: 37 MB
In CloudTrail : I see that my lambda assuming its role and get it IAM-KEY
When running the lambda test manually, I've got a another message
START RequestId: a8cdee52-d04c-11e8-ad90-XXX Version: $LATEST
'KeyError' object has no attribute 'response': AttributeError
Traceback (most recent call last):
File "/var/task/lambda_function.py", line 390, in lambda_handler
ex.response['Error']['Code'],
AttributeError: 'KeyError' object has no attribute 'response'

Hey WiLL, the logs indicate that the function ran normally. When run manually the event given to lambda must be very specific to work, not surprizing you got an error there.
Let me have a deeper look at the code. This function as the old template from the RDK. We got some issues on the past on the clean_up_old_evaluations() function that was removing all results.

Hi, I ran some check on the rule. It works on my side.
Can you double checks that:

Config is enabled: https://docs.aws.amazon.com/config/latest/developerguide/gs-console.html
Check in the Config Resource there is at least 1 IAM User: https://docs.aws.amazon.com/config/latest/developerguide/looking-up-discovered-resources.html
The rule is triggered by configuration changes on IAM User
The rule is triggered by periodically

Can you try to do the following?
Replace the entire function:
L360   def clean_up_old_evaluations(latest_evaluations, event):
With this function:
https://github.com/awslabs/aws-config-rdk/blob/master/rdk/template/runtime/python3.6/rule_code.py
L226  def clean_up_old_evaluations(latest_evaluations, event):

I've done it and doesn't seem to change anything

As I am not able to reproduce the error, can you please do some print() in the code, to get a better idea, where it's stop working in the code?

Hi @jongogogo , I'm facing the same issue with the same logs as @mwilfried. Could you confirm the permissions the lambra  function's assumed role should have so that I can check if I have missed anything? Thanks in advance!

Fixed, closing.


Rebuild build release to update.

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Refresh the stable version of the package.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

License is not an SPDX identifier (or a custom LicenseRef) nor an SPDX license expression.

Documentation on acceptable licenses can be found here.

@conda-forge-admin, please rerender


fix: anonymous CE users mixpanel issue fixed

Description
This PR fixes discrepancy in mixpanel event numbers for anonymous CE users. For self hosted instances, in mixpanel funnel, number of Execute Action backend events was much lesser compared to corresponding frontend events, Also much lesser when compared to corresponding cloud numbers.
Root cause of issue:
Issue was not because events were not getting triggered for CE for anonymous users, but issue was with the distinct Id which is assigned to each event on mixpanel. This distinct ID is based on the username, In case of logged in users, it simply gets username and uses that as distinct ID, in case of anonymous users:

for cloud users, it sets this userId as anonymousUser which then the segment library evaluates to the value of X-Anonymous-User-Id header, this value is a unique UUID, hence we get unique distinct ID for all anonymous cloud users
for self hosted instance, since we hash all the values, this anonymousUser username gets hashed to 68385f9726ad05c8e551a8d5be5cd8213f1e733346a9eb00e86f83df94639555 this value and the segment library considers this as a valid id and assigns it to distinct id, hence for all self hosted instances, irrespective of their device or instance id, distinct id stays the same

Hence it would club all such anonymous events into a single unique event for CE, thus giving lesser number in the funnel.
PR fixes following issue(s)
Fixes #27221

if no issue exists, please create an issue and ask the maintainers about this first

Media

A video or a GIF is preferred. when using Loom, don’t embed because it looks like it’s a GIF. instead, just link to the video

Type of change

Bug fix (non-breaking change which fixes an issue)

Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Also list any relevant details for your test configuration.
Delete anything that is not relevant

[x] Manual
[ ] JUnit
[ ] Jest
[ ] Cypress

Test Plan

Add Testsmith test cases links that relate to this PR

Issues raised during DP testing

Link issues raised during DP testing for better visiblity and tracking (copy link from comments dropped on this PR)

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

shouldHashUserId

@sumitsum Added unit tests please check once

/build-deploy-preview

/ok-to-test

/ok-to-test

@btsgh QA is not required for this PR as it fixes issue with mixpanel config. Adding test plan approved label


Could not adjust volume after update to MacOS 15

Before opening the issue, have you...?

[X] Searched for existing issues
[X] Looked through the wiki
[X] Updated MonitorControl to the latest version (if applicable)

Describe the bug

I have two monitors, and I always use the speaker of my main monitor, and it supports DDC control by using MonitorControl.

However after I upgraded to MacOS 15, and update the MonitorControl to 4.3 beta to avoid HDR crash, I can no longer change the volume as "Use Hardware DDC control" option is unavailable.

But if I disconnect my second monitor, "Use Hardware DDC control" option is back to normal, and I can change the volume this time.

Steps to reproduce

Two monitors connected
Use the HDR monitor speaker to play sound
Check "Use Hardware DDC control" option status, and try to change volume.
Disconnect the second monitor and check "Use Hardware DDC control" option status, and try to change volume once again.

Expected behavior

MonitorControl should show "Use Hardware DDC control" option available when using multiple monitors
MonitorControl should change the volume of the right monitor

Anything else?
Abnormal:

Normal:

Environment Information (please complete the following information)
- macOS version:MacOS 15 Sequoia
- Mac model:Mac Studio 2022
- MonitorControl version:4.3 beta Build 7083
- Monitor(s):Dell U2417H and LG 32UN880
- Apple Silicon/M1 (yes or no): Yes

The current version of MonitorControl will fall back to Apple control when available. In Sequoia, third party HDR display a software brightness control (that remaps peak SDR brightness up to 500 nits) - the app interprets this as native control and assumes the display has full native control, that's why volume control is disabled.
This issue might be fixed in some future version, however a more thorough reengineering of MonitorControl would be needed to gracefully handle this and provide both DDC and native brightness control for a display at the same time. I don't think this will be fixed in the outdated v4.x codebase (I see no point but of course other contributors are welcome to work on this).
I recommend using BetterDisplay as it has this elegantly resolved. All features of MonitorControl is available in BetterDisplay for free.

Ok, fixed this. The app will detect a display in HDR mode and refrain from identifying it as Apple display thus continue to use DDC control. The SDR peak brightness can be changed using Control Center.


Hangs when printing get_thread_id inside a cached jit function

Reporting a bug

[x] I have tried using the latest released version of Numba (most recent is
visible in the release notes
(https://numba.readthedocs.io/en/stable/release-notes-overview.html).
[x] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

I encountered a bug where the program hangs when printing the thread ID inside a cached JIT function. The code works as expected on the first run, but on the second run, where the cache is loaded from file, it hangs.
Here is a minimal reproducible example:
from numba import get_thread_id, njit, prange

@njit(parallel=True, cache=True)
def func1():
    print("start")
    for _ in prange(1):
        print(get_thread_id())

func1()
print(func1.stats)

python bug.py  # It works as expected the first time.
python bug.py  # It hangs when it uses the cache.

This problem will not occur if I do not directly use print. i.e., the following will work as expected.
@njit
def print_jit(text):
    print(text)

@njit(parallel=True, cache=True)
def func2():
    print("start")
    for _ in prange(1):
        print_jit(get_thread_id())

Needless to say, it also works fine if I don't print it at all.
Environment

Numba version: 0.60.0
Python version: 3.12.3
OS: Confirmed on Ubuntu 22.04 and Windows 10

Turns out it may have been a duplicate of #9233. I was searching for "get_thread_id" as a keyword, so I couldn't find it before...


POC for report generation (text, tables and bar chart) in PDF file

Used itext and jfreechart in java
Able to add text, tables and comparative bar charts to pdf
Minimal formatting will be needed (according my current analysis) to the data as per our requirement.


Creating BytesMut with appropriate capacity in ENR Builder

Was going through the sourcecode, trying to understand what are Ethereum Node Records (ENRs). Noticed that we can create BytesMut specifying the capacity everytime, in the ENR builder module.
So here i made a PR :).

Just need to fix the clippy lints. I would have done it, but i can't seem to push to your master branch

Just need to fix the clippy lints. I would have done it, but i can't seem to push to your master branch

Fixed the clippy lint error.


The vpc ID 'vpc-XXXXXXXX' does not exist

We have two providers:
provider "aws" {
    shared_credentials_file = "aws-auth.ini"
    profile = "default"
    region = "eu-central-1"
}

provider "aws" {
    alias = "usw2"
    shared_credentials_file = "aws-auth.ini"
    profile = "default"
    region = "us-west-2"
}

We keep on getting the error The vpc ID The vpc ID 'vpc-XXXXXXXX' does not exist because it is using the default provider, but we need both providers for requestor_vpc_id and
acceptor_vpc_id. Ideas?

Hi,
this module is used only for creating VPC peering in the same AWS account. To create VPC peering between multiple accounts use this module https://github.com/cloudposse/terraform-aws-vpc-peering-multi-account.

^^ Yeah, unless there's something I'm missing, this module does not seem to support cross region peering.

for cross-account peering, use this module https://github.com/cloudposse/terraform-aws-vpc-peering-multi-account
Usage example: https://github.com/cloudposse/terraform-root-modules/blob/master/aws/vpc-peering/main.tf

@aknysh the problem is not cross account. It is same account - cross region.

How does #17 close this?

Did you ever get this working, I'm looking for a new module as our current one hasn't been updated for years.

terraform-aws-vpc-peering is for peering VPCs in the same account and the same region - see examples https://github.com/cloudposse/terraform-aws-vpc-peering/blob/master/examples/complete/main.tf
This module https://github.com/cloudposse/terraform-aws-vpc-peering-multi-account can be used to peer VPCs accross accounts AND across regions in the same account.
See the example https://github.com/cloudposse/terraform-aws-vpc-peering-multi-account/blob/master/examples/complete/main.tf
Note that it does not need to be in diff accounts, it can be in the same account, you just specify requester_region and accepter_region
@runtman

Awesome thank you, we already use that useful module to peer across accounts, so we can just carry on using it for all now :) Have a great weekend @aknysh

I think it's worth updating the terraform registry to reflect this. I just wasted a lot of time trying to figure out how to pass a different provider to the acceptor VPC. It's not even mentioned in the README.
https://registry.terraform.io/modules/cloudposse/vpc-peering/aws/latest
Currently
Terraform module to create a peering connection between two VPCs in the same AWS account.
Change to
Terraform module to create a peering connection between two VPCs in the same AWS account and region.


Update task list colors on system wide change

Although not officially supported, it is possible to change the colors of Android calenders. Your app seams to read in these colors when the task list is initially read in and doesn't update it when the system wide color is changed. I'd like such a feature.

The color is set by the sync app. So if you change the color on the server the sync app should update it accordingly on the device (if the server supports that)
There is no direct link between the calendar and the task list on the device, so we can't just copy the color.

I'm using Baikal as caldav server together with Thunderbird/Lightning/SOGO Connector and Davdroid => colors are not synced.
With aCalendar], calendar colors can be changed, but this does not affect task colors in OpenTasks and seems to be app-internal only.
I tried the Calendar Color app mentioned here, but still no luck :(
If anyone comes up with a solution / workaround, I'd be thankful.

There is a workaround to change the colors of the calendars at least for Baikal. You can edit the MySQL/SQLite database manually. The values are left blank by default so if you just enter your desired color as hex value all your clients including OpenTasks and Thunderbird/Lightning/SOGO Connector synced with DAVdroid should show the color properly.


Handlandmark Visibility aways 0 in Holistic tracking

Plugin Version or Commit ID
0.10.1
Unity Version
2021.3
Your Host OS
Windows 10 home
Target Platform
UnityEditor, Windows Standalone
Target Device
No response
[Windows Only] Visual Studio C++ and Windows SDK Version
No response
[Linux Only] GCC/G++ and GLIBC Version
No response
[Android Only] Android Build Tools and NDK Version
No response
[iOS Only] XCode Version
No response
Build Command
build.py build --desktop cpu
Bug Description
handlandmark Visibility aways 0 (HasVisibility is false) in Holistic tracking, but pose lanmark (WorldPoseOutput) has value. is it a bug?
Steps to Reproduce the Bug
start play mode
Log
no device
Screenshot/Video
No response
Additional Context
No response

duplicates #601.
Please make sure that the official example returns the visibility.
If it surely returns, please reopen the issue.
If it doesn't, ask it in the MediaPipe community.


Devise Sign Up doesn't work anymore

Precheck

Do not use the issues tracker for help or support, try Stack Overflow.
For bugs, do a quick search and make sure the bug has not yet been reported
Finally, be nice and have fun!

Environment

Ruby 2.4.0
Rails 5.0.7
Devise 4.4.3

Current behavior
I don't know why right now my devise sign up controller doesn't work anymore. Previously, It works fine I can create user and let admin user approve and set role for new user but right now when I sign up new user It keep throwing roll back action new user can't save in database. Even I try to create new user in Rails console. Here is the message I get when I click sign up for new user.

Processing by User::RegistrationsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"+MayFpxhTcN23+FFbtkBTWbOY3X1GUSQSNl2fDqJDgyVWN3ecTr4hgY4HNCeX+TkcDOH3djBpBcrG129VXQtsA=="<EMAIL_ADDRESS>"first_name"=>"laksdfj", "last_name"=>"lkdajlf", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
(0.1ms)  begin transaction
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = ? LIMIT ?  [["email"<EMAIL_ADDRESS>["LIMIT", 1]]
(0.1ms)  rollback transaction
(0.2ms)  SELECT "users"."email" FROM "users"
No template found for User::RegistrationsController#create, rendering head :no_content
Completed 204 No Content in 668ms (ActiveRecord: 0.8ms)

My User database includes:
User id, email, first_name, last_name, approved => default: false, role_id: nil.
=> role_id is a foreign key of Role table and will be set to 1 before create action happen
Role table has:
Role Id, Name:
1 - Registered
2 - Banned
3 - Moderator
4 - Admin
user/registrations_controller.rb file:
class User::RegistrationsController < Devise::RegistrationsController
	before_action :configure_permitted_parameters if :devise_controller?

	def create
		#debugger
		build_resource(sign_up_params)

		resource.save
		yield resource if block_given?
		if resource.persisted?
		  if resource.active_for_authentication?
		    set_flash_message! :notice, :signed_up
		    sign_up(resource_name, resource)
		    respond_with resource, location: after_sign_up_path_for(resource)
		  else
		    set_flash_message! :notice, :"signed_up_but_#{resource.inactive_message}"
		    expire_data_after_sign_in!
		    respond_with resource, location: after_inactive_sign_up_path_for(resource)
		  end
		else
		  clean_up_passwords resource
		  set_minimum_password_length
		  response_to_sign_up_failure resource
		end
	end

	protected
	def configure_permitted_parameters
		devise_parameter_sanitizer.permit(:sign_up, keys: [:first_name, :last_name])
		devise_parameter_sanitizer.permit(:account_update, keys: [:first_name, :last_name])
	end

	def response_to_sign_up_failure(resource)
		if resource.email == "" && resource.password == nil
			redirect_to root_path, alert: "Please fill out the form"
		elsif User.pluck(:email).include? resource.email
			redirect_to root_path, alert: "email already exists"
		end
	end

end

routes file
Rails.application.routes.draw do

  resources :categories
  devise_for :users, :controllers => {
                        :registrations => 'user/registrations',
  }
  #devise_for :users

  resources :user_stocks, except: [:show, :edit, :update]
  #resources :users, only: [:show]
  resources :users, only: [:show, :index, :edit, :update] do
    resources :articles, only: [:new]
  end
  resources :articles, except: [:new]
  resources :friendships
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  root 'welcome#index'

  get 'my_portfolio', to: "users#my_portfolio"

  get 'search_stocks', to: "stocks#search"

  get 'my_friends', to: "users#my_friends"

  get 'search_friends', to: "users#search"

  post 'add_friend', to: "users#add_friend"

  get 'blogs', to: "articles#blogs"

  get 'myposts', to: "articles#myposts"

  #resources :users do
  #  resources :articles
  #end

end

Users_controller file
class UsersController < ApplicationController
	before_action :require_admin, only: [:index, :edit, :destroy, :update]
        def show
		#debugger
		#@friend = User.find(params[:id])
		@user = User.find(params[:id])
		@user_stocks = @user.stocks
	end

	def index
		@users = current_user.except_current_user(User.all)
	end

	def edit
	  @user = User.find(params[:id])
	end

	def update
	  #debugger
	  @user = User.find(params[:id])
	  respond_to do |format|
	      if @user.update(user_params)
	        format.html { redirect_to users_path, notice: 'User was successfully updated.' }
	        format.json { render :show, status: :ok }
	      end
  	  end
	end

	private
		def set_user
	      @user = User.find(params[:id])
	    end
		def require_admin
			if current_user.role.name != 'admin'
				#flash[:error] = "You need admin permision to perform this action!"
				redirect_to root_path, :flash => { :error => "You need admin permision to perform this action!" }
			end
		end
		def user_params
			params.require(:user).permit(:approved, :role_id)
		end
end

User.rb file
class User < ApplicationRecord
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  has_many :user_stocks
  has_many :stocks, through: :user_stocks
  has_many :friendships
  has_many :friends, through: :friendships
  has_many :articles

  belongs_to :role
  before_create :set_default_role

  def active_for_authentication?
    super && approved?
  end

  def inactive_message
    if !approved?
      :not_approved
    else
      super # User whatever other msg
    end
  end

  def full_name
  	return "#{first_name} #{last_name}".strip if (first_name || last_name)
  	"Anonymous"
  end
  def can_add_stock?(ticker_symbol)
  	under_stock_limit? && !stock_already_added?(ticker_symbol)
  end

  def under_stock_limit?
  	(user_stocks.count < 10)
  end

  def stock_already_added?(ticker_symbol)
  	# this function find if valid stock or not then go to check if it already existed in database then won't let user add to Portfolio.
  	stock = Stock.find_by_ticker(ticker_symbol)
  	return false unless stock
  	user_stocks.where(stock_id: stock.id).exists?
  	# The line above means: for example: u = User.first => u.user_stocks.where(stock_id: 1).exists? return true if exists or false if doesn't
  end

  def not_friends_with?(friend_id)
  	friendships.where(friend_id: friend_id).count < 1
  end

  def except_current_user(users)
  	users.reject { |user| user.id == self.id } #self mean the caller in this case current_user
  end

  def self.search(param)
  	return User.none if param.blank?

  	param.strip!
  	param.downcase!
  	(first_name_matches(param) + last_name_matches(param) + email_matches(param)).uniq #reference to this page http://guides.rubyonrails.org/v3.2/active_record_querying.html
  	#the above line will add up all result and then uniq to remove duplicate records.
  end

  def self.first_name_matches(param)
  	matches('first_name', param)
  end

  def self.last_name_matches(param)
  	matches('last_name', param)
  end

  def self.email_matches(param)
  	matches('email', param)
  end

  def self.matches(field_name, param)
  	where("lower(#{field_name}) like ?", "%#{param}%")
  	#Reference this page http://guides.rubyonrails.org/v3.2/active_record_querying.html
  	#Example: User.where("email like ?", "%@%")
  	#Recommend querry by array method to avoid SQL injection exploits with String only.
  end

  def isAdmin?
    if self.role.name == "admin"
      return true
    else
      return false
    end
  end

  private
  def set_default_role
    self.role ||= Role.find_by_name('registered')
  end

end

Application_controller.rb file
class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception
  before_action :authenticate_user!
  before_action :configure_permitted_parameters, if: :devise_controller?

  protected

  def configure_permitted_parameters
    devise_parameter_sanitizer.permit(:sign_up, keys: [:first_name, :last_name])
    devise_parameter_sanitizer.permit(:account_update, keys: [:first_name, :last_name])
  end

end

application_helper.rb
         module ApplicationHelper
	#------Fix Devise form when you want to use in non Devise Controller------
	#------Without this code you will get undefined var resource--------------
	def resource_name
		:user
	end

	def resource
		@resource ||= User.new
	end

	def devise_mapping
		@devise_mapping ||= Devise.mappings[:user]
	end
         end

Expected behavior
Please help!
Thank you so much!

But what is the output of record.errors?

Hi Tegon,
Here is the record error
ActiveRecord::RecordInvalid (Validation failed: Role must exist). But in the User controller I already defined a function to assign Role_id before Record is saved.
here it is:
`
class User < ApplicationRecord
before_create :set_default_role
   private
           def set_default_role
           self.role ||= Role.find_by_name('registered')
    end

`
Here is my my Seeds data:
         ['registered', 'banned', 'moderator', 'admin'].each do |role| 	        Role.find_or_create_by({name: role})          end

I already found out the problem. After I do bundle install to update something I realize that before_created is deprecated that's why it doesn't load my set_default_role() function. I have to use before_validation. Now everything is working fine.
Thanks @tegon for participating in this issue with me.

@duytran21

Could you please take a look at this?
It's similar to your previous issue?

I'm running into a similar problem but only when a user email already exists. It doesn't create an account or give an error, just rolls back the database


Generate uuid version 6?

Any future plans for generating version 6 uuid?
https://bradleypeabody.github.io/uuidv6/
https://github.com/kurttheviking/uuid-with-v6-js#why

I’m interested in it, but I’m waiting to see if they will put it through the formal IETF RFC process. I’m not going to adopt a v6 that could potentially change in the future because of competing implementations.

That's cool. I was going to say it should be fairly easy to do in terms of extending this library for your own purposes, but @mikemix already has. :smile:
I'll gladly add v6 to this official library if and when it becomes an IETF standard. Until there is a community effort to codify a version 6 UUID, encoding it with "6" in the version field will lead to interoperability issues, and I don't want this library to add to the confusion.

Just be aware: if you use "version 6" UUIDs now and a standard comes along that is even slightly different in positions of bytes, the UUIDs you generate now will be incompatible with the standard.

Version 6 UUIDs (as specified in http://gh.peabody.io/uuidv6/) are now supported in ramsey/uuid 4.0.0-alpha4. Thanks, and sorry for the extremely long wait on this!

@ramsey It looks like the peabody draft expired. I'm trying to decide if I should use peabody's draft for UUID v6 in prod now. I'd like to know what you think about this. In the past you wanted to upgrade to v6 only if it became an IETF standard, but it's not quite there yet. How certain are you that the encoding won't change between peabody's draft and become an IETF standard?

@taylorgoolsby the draft has been updated.
https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-02

Expires: 10 April 2022


Extract active role syncing out of worker management

Part of the worker_management sync_monitor loop is to sync_active_roles for the server, then notify workers of the change.
This seems like the wrong place for this since we have a RoleManagement module already, and most of the worker_management code has to call up to RoleManagement which to me indicates that it is in the wrong spot to begin with.

Can you point to where this logic lives elsewhere?

This logic only lives in the worker monitor, I just thought it made more sense to have it live in the role monitor


Update multi-forest-azure-managed.md

Same here. Adding Windows Virtual Desktop for enterprises to emphasize the article on limits and scaling.

@christiaanbrinkhoff : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@dsk-2015: I'm sorry - only the author of this article, @nehalineogi, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Potential issues when mixing with Integrated Dynamics Storage?

Setup
Storage based on Integrated dynamics, link with AE2 is with Item Bus <-> ME Storage Bus , items visible in ME Crafting Terminal
When linked with AE2 Access Point, i cannot see items in main storage

Nevermind, i didnt investigate enough, it is a unidirectional access. Works as intended, sorry!


validateErrorMessage and placeholder support for Dropdown Component

The Dropdown Component currently supports withValidation when being created by modelbuilder, however there is no support for validateErrorMessage unlike the Inputbox component, meaning the user won't be able to see why the validation for the dropdown value is invalid or not.
Additionally there is no support for a placeholder value, which means there must be an actual value in the dropdown or its blank,
There should be support for validation of the dropdown values so that if the value is invalid, the user would know why its wrong, and there should be the option for placeholder values as well (in case the user doesn't want the dropdown to be blank, but it doesn't hold an actual value)
External messages and error checking are required to show why a dropdown value is invalid, and it is inconsistent with input boxes.
Dropdown screenshot:

Inputbox screenshot:

Closing older API level bugs to focus on customer-facing bugs.  Please open a bug against the dialog that is impacted by this API issue.  Thanks!


Subheader Pointer Format for referencing different pages not handled.

In working on another Pull request, I came across a sas7bdat file that contains subheaders that produced I/O Exceptions. Opening the file up with a binary viewer, it was very obvious that the Subheader Pointer Offset was not a decimal pointer to an offset inside the page, but was a Decimal Pointer to the page number that the record persists in.
So, there is some restructuring that the subheader pointers need. They need to be able to function in their current way, but then also need to handle the possibility of referencing other pages.
This is most likely due to the associated indexes in the SAS file, making reading/editing the binary file easier and more efficient.
I currently cannot recreate a test sas7bdat file with this associated issue, as I am unaware of how to recreate the scenario. I can keep trying in the coming weeks.

hey @PCaff -- have you been able to recreate the scenario so we can work on fixing the issue?


[IOTDB-1593] Fix generated files in client-py have unapproved license

Description
See IOTDB-1593.

Coverage increased (+0.03%) to 65.355% when pulling a41cc0cdfc725bf15d14ac285e12377329eb5529 on iotdb1593m into 5edf9e966693f0f1be4f0d8e11ee0c6dde5eb02d on master.


rename extensions

As suggested in the Julia manual, I included the name of the base package in the name of the extension.
See https://pkgdocs.julialang.org/v1.9/creating-packages/#Conditional-loading-of-code-in-packages-(Extensions)

coverage: 91.606%. remained the same when pulling 1642c8bddd93af7a93dd1a5513b47ee16546212c on hr/ext into e835e3748ab48eb7e0276f0a655020af16c65dee on main.


Check that tutorials can render for Pull Requests

Originally posted by @damonbayer in https://github.com/CDCgov/multisignal-epi-inference/pull/144#pullrequestreview-2096588202
We could have caught this automatically.

This is already done. I just wasn't looking in the right place.


[ENG-782] Add schema-block model

Purpose
To add a model for schema-blocks
Summary of Changes

Add schema-block model
Update registration-schema model to include a hasMany relationship with schema-block

Side Effects
N/A
Feature Flags
N/A
QA Notes
N/A
Ticket
https://openscience.atlassian.net/browse/ENG-782
Reviewer Checklist

[ ] meets requirements
[ ] easy to understand
[ ] DRY
[ ] testable and includes test(s)
[ ] changes described in CHANGELOG.md

Pull Request Test Coverage Report for Build 3215

11 of 11 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 75.641%

Totals

Change from base Build 3210:
0.002%

Covered Lines:
6839

Relevant Lines:
7945

💛  - Coveralls


Add PreserveHttpMethodOnRedirect switch to Web cmdlets

PR Summary
Add -PreserveHttpMethodOnRedirect switch to preserve the original HTTP method used in Invoke-RestMethod, and Invoke-WebRequest upon redirect.
Replace some code with switch expressions
https://github.com/MicrosoftDocs/PowerShell-Docs/issues/9690

PR Context
Fixes #14531

@CarloToso Please rebase.

@iSazonov I'll add some tests for this later

@CarloToso Please restore standard PR description template, update the PR description, open new issue in Docs repo and add reference in the PR description.

@iSazonov I think we can merge

@CarloToso Please use standard PR description template.

@SteveL-MSFT @PaulHigin Do you have any objections to this new parameter?

@iSazonov I think the parameter name is fine


How to produce the minified version from the source?

How do you produce
https://github.com/google/diff-match-patch/blob/master/javascript/diff_match_patch.js
from this file
https://github.com/google/diff-match-patch/blob/master/javascript/diff_match_patch_uncompressed.js

@nodeticswww You can use a javascript minfier


CosmicScans.id Domain change to CosmicToon

Source information
Cosmicscans.id 1.4.30
Source language
Indonesia
Source new URL
https://cosmic1.co/
Other details
No response
Acknowledgements

[X] I have updated all installed extensions.
[X] I have opened WebView and checked that the source URL has not changed yet.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I will fill out all of the requested information in this form.


New maintainer for wallaby.

I know Elixir school expressed interest in maintaining the project, and I think they’d be a wonderful home for wallaby, but I’d also like to throw my hat in the ring as well. I’ve used wallaby on several projects and love it. I’m happy to assist with the project or take over full maintainership, just want to make sure this project continues and gets the love it deserves.

:wave:
Hi there, thanks for the support means the world :heart: :heart: :heart:
Did @keathley already post his blog post? It also doesn't mean that there needs to be one or the other, we operated as a team and no reason not to do that in the future. I'll also stick around to some degree :)

@sublimecoder Thanks so much! I'm talking with the elixirschool folks about creating a place for projects like Wallaby. But I don't think that precludes anyone from wanting to jump in and becoming a contributor or maintainer. The good news is that we have a decent start to a roadmap for 1.0 so if you wanna start taking a look at the different issues then feel free to. You can also reach out to me on irc or slack if you would like to chat.

@keathley still looking for help?  I'll look thru some issues and see if I can help out.  I'm not sure I'll be able to take the lead on this or anything but glad to do what I can to help clear the backlog of issues.  Are there any that you feel are particularly good to get started on and maybe a little more important than others?  If not, I'll go ahead and look thru them to see what where I might be able to help out.

We are heavily using Wallaby at AmberBit too, and especially heavy user is @michallepicki who does a lot of multi-browser testing at the moment. I'm not sure if @keathley you want to still pass over maintenance of this project, but we would definitely be happy to get involved more, pushing things forward.

@hubertlepicki That sounds great. Happy to chat more.

@michallepicki If you're interested in this reach out to me on elixir slack or IRC and I can add you as a contributor.


Fix: stream icon color in AllStreamList in dark theme.

Before

After

Closing in favour of #2340


Add frontmatter props and generated pages guidance on TRANSLATING.md

What kind of changes does this PR include?

New or updated content
Something else!

Description
This PR explains more about which frontmatter props should be translated and about generated pages and why you can safely ignore (and even remove) them from your translations.
I'm not good at writing, feel free to completely change this!

👀❤✅

LGTM, @Yan-Thomas!  💜


ecosystem/themes

File da tradurre
ecosystem/themes

[x] ThemeContact.vue
[x] ThemeHero.vue
[x] ThemeList.vue
[x] ThemeListItem.vue
[ ] ThemePage.vue
[ ] ThemeProduct.vue

COLLEGATO A issue 27


Darken base teal color to improve contrast

A fix for the issue described here: https://github.com/codeforamerica/cfa-styleguide-gem/issues/18
If I slightly darken our base teal color, the accessibility checks are happy with the contrast on all sizes of buttons (including .button--small). Here's what that same page on the styleguide looks like:

(as comparison, here's the original that's not contrasting enough now):

There are other ways we can address the contrast (bigger font, mainly), but this felt least intrusive. What do you think, @norrishung? Look acceptable?

I think this is a great improvement - I'm all for it. Thanks Christa!

excellent, thanks!


#2848: Make the Structure filter Marvin JS options same as Structure search

Filter Panel > Structure Search > MarvinJS,  the options on the top menu, particularly Add/Remove hydrogens and couple other options, are not accessible.
In ID Structure search Marvin JS version has those options in the menu.
Acceptance criteria:
Align the Marvin JS menu same as Structure Search  Marvin JS
the following property would need to be set:
`sketcherInstance.setDisplaySettings({
toolbars: 'markush',
});

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-15631

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16188


Dockerfile uses go 1.20, but need go 1.21

Describe the bug
v5.0.0-alpha.5 docker image build failed.
When I build ocis docker image using Dockerfile, the build failed due to different version of Go.
Steps to reproduce

Build docker image using docker file
$> sudo docker build -t TARGET .

Expected behavior
OCIS image build success
Actual behavior
 => [build 3/4] WORKDIR /ocis/ocis                                                                                0.1s
 => ERROR [build 4/4] RUN make ci-go-generate build                                                                                4.6s
------
 > [build 4/4] RUN make ci-go-generate build:
0.646 make: Nothing to be done for 'ci-go-generate'.
0.665 go build -v -tags 'disable_crypt' -ldflags '-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn -s -w -X "github.com/owncloud/ocis/v2/ocis-pkg/version.String=8aa2b9e1c6" -X "github.com/owncloud/ocis/v2/ocis-pkg/version.Tag=" -X "github.com/owncloud/ocis/v2/ocis-pkg/version.Date=20231207"' -o bin/ocis ./cmd/ocis
4.301 ../services/graph/pkg/unifiedrole/unifiedrole.go:4:2: package cmp is not in GOROOT (/usr/local/go/src/cmp)
4.301 note: imported by a module that requires go 1.21
4.302 ../services/graph/pkg/errorcode/cs3.go:4:2: package slices is not in GOROOT (/usr/local/go/src/slices)
4.302 note: imported by a module that requires go 1.21
4.309 make: *** [../.make/go.mk:102: bin/ocis] Error 1
------
Dockerfile:29
--------------------
  27 |
  28 |     WORKDIR /ocis/ocis
  29 | >>> RUN make ci-go-generate build
  30 |
  31 |     FROM alpine:3.18
--------------------
ERROR: failed to solve: process "/bin/sh -c make ci-go-generate build" did not complete successfully: exit code: 2

Setup
Operating System:
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
Docker:
Docker version 24.0.7, build afdd53b
Commit:
commit 8aa2b9e1c6e6c0c1e450405d3375ab45dd416840 (HEAD, tag: v5.0.0-alpha.5)
Additional context
Using Go 1.21 makes the build success.
diff --git a/Dockerfile b/Dockerfile
index 48ac9f23a0..24dc73d61d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,7 +21,7 @@ COPY ./ /ocis/
 WORKDIR /ocis/ocis
 RUN make ci-node-generate

-FROM owncloudci/golang:1.20 as build
+FROM owncloudci/golang:1.21 as build

 COPY --from=generate /ocis /ocis

Thanks for the report. Should be fixed with: https://github.com/owncloud/ocis/pull/7915