improve credits payment processing flow - duplicate transactions

I clicked on purchase here: https://odysee.com/@SampleDragon:4/DerpyBigHeadedDergTransparentFree2Use:1 and the screen didn't seem like anything was happening, and I was able to click purchase multiple times. This leads to multiple transactions

add pending purchase flow, disable button

Notes:
e1b13013, lost logic,
the icons is also wrong, showing fiat,


getFeatureImportances - TrainClassifer + LGBM

lgbm = LightGBMClassifier(objective='multiclass', weightCol="WEIGHT")
model = TrainClassifier(model=lgbm, labelCol="label", numFeatures=10).fit(data))

lgbm.getFeatureImportances()
model .getFeatureImportances()

Both of these raise attribute errors. But getFeatureImportances is really only useful when you pass the features through TrainClassifier? (especially when there are a large number of features and you do not know the mapping to indexes in a feature array).

@imatiach-msft - model.getModel().getFeatureImportances() does work.
I'm assuming this list maps directly to the order of columns supplied in the df? It is a little hard to get any useful information out of this from text features but I'm not entirely sure how that would be possible anyway.


Pigeons should report back the amount of eth coins that each pigeon holds

Background
Read title :)
Done when

[ ] paloma code changes to support this
[ ] pigeon code changes to support this

@Vizualni I think this is done. Can this be closed?

@verabehr good point. Thanks! Closing.


Informix 11.7 Schema's hidden when not included in connection string's Database/Schema

System information:

Operating system (distribution) and version:  Windows 10 Pro (1909)
DBeaver version:  <IP_ADDRESS>002292132
Java version:  Java SE Version 7 Update 55 (build 1.7.0_55-b14)
Additional extensions

Connection specification:

Database name and version:  Informix Dynamic Server 11.70.FC7
Driver name:  IBM Informix JDBC Driver for IBM Informix Dynamic Server 3.70.JC2DE
Do you use tunnels or proxies (SSH, SOCKS, etc)?:  Not through DBeaver - IPSec and L2TP

Describe the problem you're observing:  When connected to an Informix server with more than one database/schema, schema's not included in the connection string's Database/Schema are not available in the other viewable databases.
Steps to reproduce, if exist:
1 - Create a connection to an Informix database which hosts more than one database and share some but not all schema names.
2 - Open the database which is not in the database connection string and includes schema names not in the database used in the connection string and expand the database to view the available schemas.
Schema's not in the connection string's Database/Schema are not viewable in the selected database.
This was seen on a production database which had nearly identical schemas across all of the databases.
No errors were seen.
Include any warning/errors/backtraces from the logs

I confirm this problem.
I have reported a similar problem issue 8572
Is there any chance to fix it?

sorry for the late response. Thanks for the bug report

We have updated the driver version, now some things work better.
The procedure list now displays both procedures and functions.
But now Informix main support is in Dbeaver-EE version.
In EE-version we made the process of reading diagrams a little different, and now for the system database and the main database specified in the connection - the schemes are read correctly. Other databases will give an error when trying to open schemas.
Use separate connections for separate databases in this case.
Perhaps this system will be improved in the future.

verified


New “getting started” section for RNS

What

Create a section with simple tutorials on how to use RNS
Create first tutorial on how to associate a domain to a wallet

Why

End users could also access this type pf docs

Refs

An idea (in spanish): https://www.criptonoticias.com/tutoriales-guias/aprende-asociar-nombre-dominio-cartera-ethereum-ens/

According last TECH sync meeting 06/30/2020. We need to create a page where users can see the RNS integrations. (Sergio's proposal)
@ilanolkies,  Should be in the same getting started section or could be in the next one like the consecutive one?
Source; excel RNS Wallet integration list

I think the landing page for RNS - https://developers.rsk.co/rif/rns/ would
be good for this or the integrations section -
https://developers.rsk.co/rif/rns/integrate/, what do you think @ilanolkies?
On Wed, Jul 1, 2020 at 3:44 PM Dulce Villarreal<EMAIL_ADDRESS>wrote:

According last TECH sync meeting 06/30/2020. We need to create a page
where users can see the RNS integrations. (Sergio's proposal)
@ilanolkies https://github.com/ilanolkies, Should be in the same
getting started section or could be in the next one like the consecutive
one?
Source; excel RNS Wallet integration list
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rsksmart/devportal/issues/169#issuecomment-652461390,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJTZB37SDNQCOFOP7DLNPXTRZNDTLANCNFSM4K7HRK6Q
.

I guess it is something to put in the main page. Maybe we can use something like the carrousel of RSK wallets. Together with the video it would be like

The integration page is more developer-like, this info is useful for everybody.
Anyway I think we can take two different issues to handle this, the video is not related to the wallet integration listing.


Adding more flexibility into the cmake catch parsing script

Description
Just adding more flexibility for the cmake catch parsing script. No functional changes, mostly control over existing ones. For example, currently it always adds all tests with [!hide] tag which is not what I want. Meanwhile, I still want those tests to be compilable for a reason. Same for naming the tests -- for me, it's overkill to add fixtures and project name to the test name. For others it may be fine. I feel like configuration here is nice to have.

Failed build is not because of me apparently, anyway this file is not involved in any tests or build chain.
/usr/bin/../lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cstdio:120:11: error: no member named 'gets' in the global namespace

Travis recently changed something that broke Clang in C++14 mode.

I got around to looking through this and there are 2 problems that should be fixed before it is merged

Only [!hide] is supported when hiding tests, but as far as I know, using it is rather rare. Much more common is using the short form of [.] and combined variation [.foo].
There is a summary of the function at the top, it should be updated with new options.

Made an update to address the review. Thanks for it, btw.

A quick test says it works correctly now, so I am going to merge it. Thanks for the PR.


think about what to do when the server doesn't have a cert for the SNI

mint returns an internal error, so we never send out a response to an Initial packet, so the client will eventually run into a connection timeout. In fact, this is what happens in the corresponding integration test: https://github.com/lucas-clemente/quic-go/blob/master/integrationtests/self/handshake_test.go#L98-L102

This issue would be resolved if https://github.com/bifurcation/mint/pull/155 was merged.

I just realized that the issue here is that the stateless part of the server never sends CONNECTION_CLOSEs. While it is the right thing to ignore packets that cannot be unpacked (i.e. that return an error while unpacking), from a certain point on we should inform the client about errors.


Each vault export write (ExportWritesPerMinutePerProject) quota is counted 10x

Google Vault API issue tracker has dismissed the issue, 2, 3, and most recently pointed toward python client as the issue (other users experience it Java, haven't test JS yet) and asked to open issue here.
Description
Every export appears to be counted 10 times toward the "Export Writes per minute" quota
This is easily visualized on the GCP Project's Quota page. Reproducible when exporting with a SINGLE export.
Requirements

Python3
Google SDK libraries installed via pip (Follow dev Python QuickStart guide)
Sample email account with data (empty/new accounts may not reproduce error)

What steps will reproduce the problem?

Create new GCP Project
Use API tab and search library for "vault"
Enable - https://console.cloud.google.com/apis/library/vault.googleapis.com for project
Create OAuth Desktop client
Download json key and paste local path into script (line 11)
Run script: e.g. python3 samplescript.py<EMAIL_ADDRESS>Observe error in exports (20 export limit reached after 2 exports)

Expected
When exporting any fewer than 20 exports the RATE_LIMIT_EXCEEDED error should not be encountered.
SAMPLE CODE
Most of this is from Google's sample Python Quickstart docs and example export documentation
from __future__ import print_function
import os.path, sys, time
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from google.oauth2.credentials import Credentials

SCOPES = ['https://www.googleapis.com/auth/ediscovery']

# Path to local OAuth 2 client id file (create with "Desktop" type)
oauth_2_client_id_file = '/Users/grantgriffith/Downloads/client_secret_########.json'

def create_matter(service, email_address):
  matter_content = {
      'name': '{} - {} - DEV_TEST'.format(str(email_address),time.asctime())
  }
  matter = service.matters().create(body=matter_content).execute()
  return matter

def create_mail_account_held_data_export(service, export_name, matter_id, email_to_search):
    mail_query = {
      'corpus': 'MAIL',
      'dataScope': 'ALL_DATA',
      'searchMethod': 'ACCOUNT',
      'accountInfo': {
          'emails': [email_to_search]
      },
      "startTime": "2021-04-01T14:04:41Z", # Optional, limits export size
      "endTime": "2021-05-01T14:04:41Z", # Optional, limits export size
    }
    mail_export_options = {
        'exportFormat': 'MBOX',
        'showConfidentialModeContent': True
        }
    wanted_export = {
        'name': export_name + " MAIL Export",
        'query': mail_query,
        'exportOptions': {
            'mailOptions': mail_export_options
            }
        }
    return service.matters().exports().create(
        matterId=matter_id, body=wanted_export).execute()

def main():
    creds = None
    # The file token.json stores the user's access and refresh tokens, and is
    # created automatically when the authorization flow completes for the first
    # time.
    if os.path.exists('token.json'):
        creds = Credentials.from_authorized_user_file('token.json', SCOPES)
    # If there are no (valid) credentials available, let the user log in.
    if not creds or not creds.valid:
        if creds and creds.expired and creds.refresh_token:
            creds.refresh(Request())
        else:
            flow = InstalledAppFlow.from_client_secrets_file(
                oauth_2_client_id_file, SCOPES)
            creds = flow.run_local_server(port=0)
        # Save the credentials for the next run
        with open('token.json', 'w') as token:
            token.write(creds.to_json())

    vault_service = build('vault', 'v1', credentials=creds)

    #Create new test Google Vault Matter
    new_matter = create_matter(vault_service, sys.argv[1])
    print("{} - CREATED, Status - {}".format(new_matter['name'], new_matter['state']))

    id = new_matter['matterId']
    email = sys.argv[1]

    #Create 1st export
    mail_export = create_mail_account_held_data_export(vault_service, "FIRST", id, email)
    print(mail_export['name'], mail_export['status'])

    #Create 2nd export
    mail_export2 = create_mail_account_held_data_export(vault_service, "SECOND", id, email)
    print(mail_export2['name'], mail_export2['status'])

    #Create 3rd export
    mail_export3 = create_mail_account_held_data_export(vault_service, "THIRD", id, email)
    print(mail_export3['name'], mail_export3['status'])

    #Create 4th export
    mail_export4 = create_mail_account_held_data_export(vault_service, "FOURTH", id, email)
    print(mail_export4['name'], mail_export4['status'])

if __name__ == '__main__':
    main()

HTTP Error response from my new test project that reproduces the error:
googleapiclient.errors.HttpError:
<HttpError 429 when requesting
https://vault.googleapis.com/v1/matters/e67ac8b7-1e55-49b9-9d9f-ddefa8233fb7/exports?alt=json returned
"Quota exceeded for quota metric 'Export Writes' and limit 'Export Writes per minute' of service 'vault.googleapis.com' for consumer 'project_number:721746368665'.".
Details:
"[
  {
    "@type": "type.googleapis.com/google.rpc.ErrorInfo",
    "reason": "RATE_LIMIT_EXCEEDED",
    "domain": "googleapis.com",
    "metadata": {
      "service": "vault.googleapis.com",
      "consumer": "projects/721746368665",
      "quota_limit": "ExportWritesPerMinutePerProject",
      "quota_metric": "vault.googleapis.com/export_writes"
    }
  }
]">

Hi @mngrant,
Please kindly let me know if you can re-create the problem using the 'Try this API' interface on this page.
Regretfully I'm not able to re-create the problem as I don't have Vault configured on my test accounts. When I try to run the sample I receive the error googleapiclient.errors.HttpError: <HttpError 403 when requesting https://vault.googleapis.com/v1/matters?pageSize=10&alt=json returned "Customer does not have Vault installed.". Details: "Customer does not have Vault installed.">. I understand that Vault installation requires a G Suite enterprise account, which I do not have.
I've filed an internal bug for the Vault team to investigate or provide guidance on how to troubleshoot further. Googlers see b/193419503.
In the meantime, if you have a support contract with Google, please contact support to ensure a timely response.

No issue on the web tests. I have been able to verify that works.
Though, the 'Try this API' tests don't appear to count anywhere toward my quotas - I might be missing the test project where that quota is counted. I can hammer on it repeatedly and it does not register on the projects I am inspecting.
I have opened a ticket with Workspace Support who indicated they offer no API support and suggested I follow up with the bug tracker (again), who then kicked me here.

Thanks for confirming. It is strange that the Try this API page does not affect quota. If you are interested to troubleshoot further independently, you could try using curl to send the requests manually.  You can capture the specific http requests being sent by adding the following lines at the top of your python file. Please don't share the HTTP logs here as they contains sensitive authentication information. In can you are interested in experimenting further, you can see an example of a curl request in #1422 which includes authentication.
import httplib2
httplib2.debuglevel = 4

I'll monitor the internal bug that I filed and report back if there is any update.

Possibly worth noting. I did just push another test with the API Explorer. I was able to hit a quota on my 5th export. I see all 4 exports running, but the 5th gives this error:
{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Export Writes' and limit 'Export Writes per minute' of service 'vault.googleapis.com' for consumer 'project_number:292824132082'.",
    "status": "RESOURCE_EXHAUSTED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "RATE_LIMIT_EXCEEDED",
        "domain": "googleapis.com",
        "metadata": {
          "quota_metric": "vault.googleapis.com/export_writes",
          "quota_limit": "ExportWritesPerMinutePerProject",
          "service": "vault.googleapis.com",
          "consumer": "projects/292824132082"
        }
      }
    ]
  }
}

@parthea I was able to increase the log output and immediately on the third export attempt the rate limit was hit as expected. A 429, as experienced in the web api explorer test above. The web UI explorer took a 5 total tests with the same account and query I use below for this test to hit failure (4 appeared to run and export into my test Vault Matter, the 429 came on the 5th attempt in the API explorer).
Here is the output removing the header send body line and obfuscating the account I'm testing with and truncated for size. This test body documents the full query I'm using - pretty basic and copied from the sample code in my original post.
send: b'POST /v1/matters/###REMOVED LINE###
send: b'{"name": "SECOND MAIL Export", "query": {"corpus": "MAIL", "dataScope": "ALL_DATA", "searchMethod": "ACCOUNT", "accountInfo": {"emails"<EMAIL_ADDRESS>"startTime": "2021-04-01T14:04:41Z", "endTime": "2021-05-01T14:04:41Z"}, "exportOptions": {"mailOptions": {"exportFormat": "MBOX", "showConfidentialModeContent": true}}}'
reply: 'HTTP/1.1 429 Too Many Requests\r\n'
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Type: application/json; charset=UTF-8
header: Content-Encoding: gzip
header: Date: Mon, 12 Jul 2021 19:50:00 GMT
header: Server: ESF
header: Cache-Control: private

Thanks for trying the API explorer again. Since you're able to reproduce an issue with the web API explorer as well, I'd recommend to request to re-open https://issuetracker.google.com/issues/192636545 .

Hi @mngrant, I've heard back from the API team. This is working as intended. Each call to export.create costs as 10 towards your quota limit, whereas export.get costs as 1 towards your quota limit. Please visit this page to view your current quota and request an increase. Note that this quota is a per minute quota, and is different from the limit of 20 concurrent exports.

I'm going to close this issue as "Working as Intended", but please feel free to re-open this issue if you have additional questions.
If you have specific questions about quotas, you can reach out to the API team directly via this support page.


proposed DI water structure

I don't feel confident about how far out this should be axiomitized, or whether deionization should be thought of as a purification or as a material component separation
I haven't attempted to find a safe range of OBI ids yet.
CC @cmungall

OBI doesn't have user ID ranges. Please use this Google Sheet to get an ID: https://docs.google.com/spreadsheets/d/1tpDrSiO1DlEqkvZjrDSJrMm7OvH9GletljaR-SDeMTI/edit#gid=224833299
We define ENVO imports in this file: https://github.com/obi-ontology/obi/blob/master/src/ontology/OntoFox_inputs/ENVO_input.txt


can't reproduce results on cub dataset

Hi @JennySeidenschwarz, thanks very much for sharing the code with clear instructions. Recently I have tried training on cub dataset but I only get 67.07% best R@1, which is worse than the reported result (70.3%). I have created the env with the provided environment.yaml and used the training command in the instructions. I only modify the bssampling setting below from "NumberSampler" to "no".
https://github.com/dvl-tum/intra_batch/blob/5d10e8d9ba59ff50ae8bd7d2b0ba9dbaea9c987a/config/config_cub_train.yaml#L53-L55
Besides, I have tried testing the provided best_weights on cub dataset and the result is 70.3%, so I think the downloaded dataset is correct. I wonder do I miss anything and could you give me some suggestions for getting the reported result? Thanks!

Same issue here. I've created the conda env with the provided environment.yaml and used the training command in the instructions, but I can only reach R@1=~68% for CUB dataset with the config as it is.
The packages version are the same as the environment.yaml stated, I tried the setup with cuda 10 and cuda 11 (as sometimes this can create different results). But none of go more than 68% for cub.
I can only reproduce the result with the provided weights. It would be nice if you can provide some further insights on how to reach the performance reported.

Hey everyone :)
sorry for the late result! We lately experienced something similar. Some of the layers we use (especially torch scatter) are unfortunately undeterministc. Also, batch sampling has a significant impact on the performance. If you re-train the network you should be able to reproduce the results (at least this is what our experiments showed).
Please let me know if you have more questions!

Hi Jenny,
thanks for your reply. I am using the same config as provided in your repo and the command shown on README. Did you use any specific setting different from the one provided in [config_cub_train.yaml](./config/config_cub_train.yaml)? I am using this one to re-train the model, however, the performance was only around R@1=68% on average (from several runs on different gpus and cuda versions).
Did you find out ways to make the process more deterministic or closer to your runs? As you mentioned above, I think this could be a strong possibility why I cannot reproduce the result.
Thanks in advance! :D

We used the same config file and my students were actually able to reproduce the performance :(
My students used the following to make it more deterministic:
def set_seeds(seed: int):     # For reproducibility     random.seed(seed)     np.random.seed(seed)     rng = np.random.default_rng(seed)     os.environ["PYTHONHASHSEED"] = f"{seed}"     os.environ["CUBLAS_WORKSPACE_CONFIG"] = ":4096:8"     torch.manual_seed(seed)     torch.cuda.manual_seed_all(seed)     torch.backends.cudnn.deterministic = True     torch.backends.cudnn.benchmark = False     torch.use_deterministic_algorithms(True)     torch.set_num_threads(1)
However, torch.backends.cudnn.deterministic = True for example does not work for the torch version we used in our project and you have to turn it off. This should bring you closer to the results we got.
I'm sorry that I cannot help you more, reproducibility in pytorch is a pain...


Log In - Unable to log into account - Skeleton stuck at loading

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

Action Performed:

Open staging.new.expensifail.com
Login to<EMAIL_ADDRESS>
Expected Result:
User is successfully logged into the account
Actual Result:
User gets endless skeleton page
Workaround:
Unknown
Platforms:

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

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

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Issue is not reproductible in production.

Unsure how to resolve this blocker without being able to test this account. I can look at logs but it would be better to be able to log in with this account. I can log in fine on staging so it might be something unique to this account.

Are there any logs in the JS console or anything you can give us?

@marcaaron you can login to this account. Pinged you in SLack

Another user facing login issue<EMAIL_ADDRESS>

@marcaaron this looks similar to what i've been experiencing and posting some details about here: https://expensify.slack.com/archives/C049HHMV9SM/p1683295710267669

fire room created here https://expensify.slack.com/archives/C0575MDAVLG/p1683304589499229

This can be closed once https://github.com/Expensify/Web-Expensify/pull/37306 is deployed to prod. I'll keep my eye on it for now.

@isagoico the fix is not in production yet it seems

hmm seems like we didn't CP'ed https://github.com/Expensify/Web-Expensify/pull/37306 to staging , and I think we should have.

🤔 i'm pretty sure it's on staging unless it got reverted or something?

it doesn't seem to be on production as best I can tell though

🤔 i'm pretty sure it's on staging unless it got reverted or something?

Yes, eventually it reached staging by the normal deploy process, but that allowed the deploy blocker caused by https://github.com/Expensify/Web-Expensify/pull/37134/files to reach production without this fix

oh sorry I see what you were saying, it was deployed but not CP'd.
Is there an error that is thrown on the backend that we could look for to see if it's affecting non testing accounts? We are very close to the earnings call and I'd rather avoid CP'ing anything if we can but if this in any way affects non-testing accounts then we should consider CP'ing it.

I think this log search can help answer that: https://www.expensify.com/_devportal/tools/logSearch/#sort=asc&size=10000&query=blob%3A "%2Flib%2FReport%2FAction%2FChangePolicy.php" AND timestamp%3A[2023-05-09T00%3A00 TO 2023-05-10T23%3A59]
Then, running:
Object.keys(
    [...document.querySelectorAll("td")]
       .filter(a => a.textContent.indexOf("@") != -1)
       .map(a => a.textContent)
       .filter(email => email)
       .reduce((accum, email) => {accum[email] = 1; return accum;}, {})
)

The only emails having this problem today are:
[
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>]

okay cool that is probably a guide or something right? earnings call is in like 7 minutes so I think we can :donothing: for now

The code that is supposed to fix this is on production web now so I'm going to close this. If it's still happening feel free to reopen @kbecciv.


VSCode Plugin

Would love to try this out on VSCode

See https://github.com/esbenp/prettier-vscode

There's already an issue about a VS Code plugin (#39); this should probably be closed in place of that issue.

Ok thanks!


Dynamic defaullt variables

Describe the feature
It would be really great if a default value for a field in on a model could be dynamic at the runtime with a function.
At the moment if you define a model all the default values are set when the JavaScript loads. You can set a default value at the runtime like this:
import { Model } from "pinia-orm";

const utcsec = () => Math.floor(Date.now() / 1000);

const randint = (low: number, max: number): number =>
  (Math.round(Math.random() * 10) % (max ?? low)) + (max ? low : 0);

export default class HUMAN extends Model {
  static entity = "Human"; # For a bit
  static primaryKey = "id";

  static fields() {
    return {
      id: this.uid(),
      hat_color: this.string(["red", "white", "blue"][randint(0,2)]),
      name: this.string("Nameless"),
      last_noticed: this.number(utcsec()),
    };
  }

  declare id: string;
  declare hat_color: "red" | "white" | "blue";
  declare name: string;
  declare last_noticed: number;
}

Even though this takes the current time at the startup, the value of that last_noticed will not be updated because the value is calculated at the start.  Similarly, one hat_color is chosen at the start and that is it. All humans will get that hat color. It would be great if the fields could take a callable and that that callable is called to provide a return value if no value is provided for the field.
It looks something like this:
import { Model } from "pinia-orm";

const utcsec = () => Math.floor(Date.now() / 1000);

const randint = (low: number, max: number): number =>
  (Math.round(Math.random() * 10) % (max ?? low)) + (max ? low : 0);

let count = 0;

export default class HUMAN extends Model {
  static entity = "Human";
  static primaryKey = "id";

  static fields() {
    return {
      id: this.uid(),
      hat_color: this.string((0 => ["red", "white", "blue"][randint(0,2)]),
      name: this.string("Nameless"),
      last_noticed: this.number(utcsec),
      count: this.number(() => count++)
    };
  }

  declare id: string;
  declare hat_color: "red" | "white" | "blue";
  declare name: string;
  declare last_noticed: number;
}

As you can see there are already 3 different use cases for this and I think that the ability to set a default variable with a closure is really nice.
Attempted workaround
I tried to update the default value by redefining the static fields method on the model instance. Like this:
HUMAN.fields = () => {
    return {
      id: Model.uid(),
      hat_color: Model.string(0 => ["red", "white", "blue"][randint(0,2)),
      name: Model.string("Nameless"),
      last_noticed: Model.number(utcsec)
    };
  };

But replacing the static method does not seem to work. It still returns the same time and color for me.
I think this dynamic default variables are a good addition to pinia orm. Vuex orm supportes closure default values. You could also do type checking on the return type of the function. So if it is a this.number or @Number then the return type of the callable should be a number as well. Same for this.string then the return type of the function should be a string. Attr perhaps could just have any.
Alternatively, you could have like an onCreate method or something that the programmer can define on the model that can set default variables. But that would be harder to translate to the decorators I think.
Or maybe I am missing a way to do something like this?
Additional information

[X] Would you be willing to help implement this feature?
[X] Could this feature be implemented as a module?

Final checks

[X] Check existing discussions and issues.

Isn't this possible already with mutators ? But i get what you mean that it might be handier to introduce functions back to the default values....thinking about it. What do you say about using mutators for it ?

I wrote a reply to this but I probably forgot to send it. Thanks for adding the closures!
I think this is better because without the closures you have to augment the setters to detect that it is the "generate default value case", So for instance you could have null as the default value and then the setter could call the default value function if it gets null. For other values you would run the normal setter stuff. So this is just extra steps, and if you set later with the default value you would actually generate another default function call which is probably not what you want.
So I really agree! We now have all the power dynamic mutilators, casts & default values ✊


delaunay X and Y are optional

A complement to https://github.com/observablehq/plot/pull/930
the X and Y channels should be optional in all the voronoi marks—since d3-delaunay can handle collinear points (and it's not just for the sake of it: the resulting voronoi can be useful, as illustrated in the test case).

thank you!


TST: test against bluesky protocols

Adding test which explicitly checks ophyd objects against new bluesky protocols using static analysis. I'm sure there are more objects that could be checked, willing to add if desired.

Passes locally, don't immediately understand why it doesn't pass in CI. Don't have time to think about it at the moment, will return.

perhaps try putting the test file in a separate directory and running mypy from that directory?

Played around, the solution ended up being --follow-imports=skip. Don't know why I don't need that locally, but if it works it works :shrug:
This is ready for review I'm curious if y'all think this is a good idea.
I've been seeing some pytest failures which I don't think is related to this change.

Single TimeoutError for 3.6, believe it's unrelated.
This is ready for review again. Everything goes via pytest now :smile:

@tacaswell, @danielballan, any objections to merging it?


Futhark-pyopencl crashes after it finishes compiling on Windows

C:\futhark\examples>futhark-pyopencl --module blur.fut

C:\futhark\examples>      0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60E90000, RegionSize 0x3E0000, State 0x10000
C:\msys+7za+wget+svn+git+mercurial+cvs-rev13\msys\bin\chmod.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

I do not even have Cygwin installed, so I am not sure what exactly is going on here.
Actually, scratch that. It is not the backend that is crashing, but chmod itself on my computer. It throws the above error as soon as I run it. I am not too familiar with Linux, but depending on what it does, maybe chmod does not need to be run on Windows? Wiki says all it does is change access flags.
Is there a step after it? The chmod call might be blocking it.

No, the chmod is the last thing the compiler does.
I'll disable it on Windows.  You're right that it is unnecessary.
(Does PyOpenCL really work on Windows?)
--
\  Troels
/\ Henriksen

I managed to install it, I'll give it a shot tomorrow.

I committed something that I think may fix it.  You may still want to use the -o option to make foo.fut be built as foo.py, rather than just foo.

Had to install pypng via pip and now I am running into this error when I try to execute the example:
C:\futhark\examples>python blur-png.py gottagofast.png --output-file gottagofast-blurred.png
usage: blur-png.py [-h] [-t WRITE_RUNTIME_TO] [-r RUNS]
blur-png.py: error: unrecognized arguments: gottagofast.png --output-file gottagofast-blurred.png

I wonder what this is?

Ok, I've added a few print statements and verified that it does not even enter the main function. The error seems to be happening somewhere in the imports.

You have to use 'futhark-pyopencl --module' when compiling the Futhark
program - otherwise you get a standalone program, not a reusable module.
--
\  Troels
/\ Henriksen

I just copied the example from the main page. I'll try your suggestion.

Now I am getting this error. Actually, this is the same error as when I tried program compiled by the last version of Futhark, before the latest merge.
C:\futhark\examples>python blur-png.py gottagofast.png --output-file gottagofast-blurred.png
Namespace(filename='gottagofast.png', iterations=1, output_file='gottagofast-blurred.png')
Traceback (most recent call last):
  File "blur-png.py", line 28, in <module>
    main(args.filename, args.output_file, args.iterations)
  File "blur-png.py", line 11, in main
    img = misc.imread(infile, mode='RGB')
TypeError: imread() got an unexpected keyword argument 'mode'

That's strange.  It's handwritten code that calls a function from the
SciPy library.  I'm not very knowledgeable about Python, but I suspect
that you have a different version of SciPy installed than I did when I
wrote that program.  I used version 0.17.  Which one do you have?
--
\  Troels
/\ Henriksen

C:\futhark\examples>pip show scipy
---
Metadata-Version: 2.0
Name: scipy
Version: 0.15.1
Summary: SciPy: Scientific Library for Python

Looking at the documentation in Intellisense, I see that it lacks a mode argument. It is strange that my version is so out of date as I am using the version from Anaconda. I'll upgrade to the latest one.

It indeed looks like the 'mode' keyword argument was added in version
0.17.  You can try leaving it out and see what happens - it might
default to whatever format the image is actually in.
--
\  Troels
/\ Henriksen

I'll try that. The scipy upgrade is failing because Anaconda does not seem to have any BLAS libraries with it, so the scipy compilaltion fails. I have no idea what to do about this.

No, it did not work out.
C:\futhark\examples>python blur-png.py gottagofast.png --output-file gottagofast-blurred.png
Namespace(filename='gottagofast.png', iterations=1, output_file='gottagofast-blurred.png')
Traceback (most recent call last):
  File "blur-png.py", line 28, in <module>
    main(args.filename, args.output_file, args.iterations)
  File "blur-png.py", line 13, in main
    blurred = b.main(iterations, img)
  File "C:\futhark\examples\blur.py", line 1670, in main
    assert (np.int32(3) == image_mem_1617_ext.shape[np.int32(2)]), 'shape dimension is incorrect for the constant dimension'
AssertionError: shape dimension is incorrect for the constant dimension

I do not suppose there is a way of reading png files that does not depend on Scipy routines?

I have sometimes used the pypng library for operating on PNG files:
https://pythonhosted.org/pypng/png.html
The reason I didn't use it for the blurring example is that I found it
awkward to extract a Numpy array from the generator produced by pypng.
I must re-iterate that I'm not much of a Python programmer, so there may
be some way.
--
\  Troels
/\ Henriksen

I think the reason you get that error is because SciPy produces an array where the size of the innermost (third) dimension is 4 (i.e. contains an alpha channel), where the Futhark program blur.fut explicitly demands an inner dimension of size 3.
You can do some pre-processing in Python to shrink the inner dimension (not sure how, but there's probably a Numpy one-liner), or modify blur.fut to accept an alpha channel (but probably just throw it away).

No, it is fine. Most of the errors in this thread seem to be on my own end. I never realized that the Anaconda distribution I had on my system was nearly a year old. I am nearly done reinstalling everything and will try again after I am done.

Ok, I finally installed everything that needs to be, but even so, it still does not work.
C:\futhark\examples>python blur-png.py gottagofast.png --output-file gottagofast-blurred.png
Traceback (most recent call last):
  File "blur-png.py", line 27, in <module>
    main(args.filename, args.output_file, args.iterations)
  File "blur-png.py", line 16, in main
    w.write(f, numpy.reshape(blurred.astype(numpy.uint8), (height, width*3)))
  File "C:\Users\Marko\Anaconda2\lib\site-packages\png.py", line 655, in write
    nrows = self.write_passes(outfile, rows)
  File "C:\Users\Marko\Anaconda2\lib\site-packages\png.py", line 804, in write_passes
    extend(row)
  File "C:\Users\Marko\Anaconda2\lib\site-packages\png.py", line 801, in <lambda>
    return lambda sl: f(map(int, sl))
TypeError: int() argument must be a string or a number, not 'Array'

Interesting!  It fails inside the PNG encoding library.  Since the
function call
w.write(f, numpy.reshape(blurred.astype(numpy.uint8), (height, width*3)))
passes just an array, I am not really sure what could go wrong.  If
'height' or 'width' was mistakenly an array and not a scalar, it would
fail in the reshape(), not in the call to write().
So... I don't really know what could be wrong here.  Maybe your pypng is
also old?  However, the png.py I have locally seems to contain the same
lines 655, 804 and 801 as mentioned in the backtrace.
You could try using the imsave method from SciPy:
https://docs.scipy.org/doc/scipy-0.17.0/reference/generated/scipy.misc.imsave.html
If that works, I'll just change the example to use SciPy entirely.  It's
a bit ugly to use different libraries for reading and writing, I think.
--
\  Troels
/\ Henriksen

I did some tests. For some reason, imsave works for when I write the original image to the outfile, but if I pass it the resulting OpenCL array, it freezes up.
Right now I am trying to figure out how to turn that OpenCL array from the main function into a genuine host array, but I am not sure how. I think that at the end of blur.py it is in fact being copied to host synchronously.
I need to do this in order to figure out what the problem is with imsave and whether the problem is there in the first place.
Printing out the blurred variable works fine. Is there a way to force a copy to host and conversion to numpy array?
Also, there is nothing wrong with my version of pypng, I got it straight off pip.

You can do that by calling the .get() method on the returned array - it
returns a Numpy array copied from the PyOpenCL array.
--
\  Troels
/\ Henriksen

Actually, your suggestion is quite helpful. Wish I could have figured it out on my own.
Now the problem is this:
C:\Users\Marko\Anaconda2\lib\site-packages\scipy\misc\pilutil.py:90: RuntimeWarning: overflow encountered in byte_scalars
  cscale = cmax - cmin
Traceback (most recent call last):
  File "blur-png.py", line 25, in <module>
    main(args.filename, args.output_file, args.iterations)
  File "blur-png.py", line 14, in main
    misc.imsave(outfile,blurred.get())
  File "C:\Users\Marko\Anaconda2\lib\site-packages\scipy\misc\pilutil.py", line 195, in imsave
    im = toimage(arr, channel_axis=2)
  File "C:\Users\Marko\Anaconda2\lib\site-packages\scipy\misc\pilutil.py", line 341, in toimage
    bytedata = bytescale(data, high=high, low=low, cmin=cmin, cmax=cmax)
  File "C:\Users\Marko\Anaconda2\lib\site-packages\scipy\misc\pilutil.py", line 92, in bytescale
    raise ValueError("`cmax` should be larger than `cmin`.")
ValueError: `cmax` should be larger than `cmin`.

The reason for this is, as you will see if you take a look at the values above, is that they are all negative for some reason. I am not sure why this is so.

I finally did it. I was right. There was an invalid conversion error. Take a look:
    return cl.array.Array(self.queue, (rows_1201, cols_1202, np.int32(3)),
                          ct.c_int8, data=out_mem_1676)

    return cl.array.Array(self.queue, (rows_1201, cols_1202, np.uint32(3)),
                          ct.c_uint8, data=out_mem_1676)

When I modified the first ct.c_int8 to the second ct.c_uint8 it started working. This is definitely a bug. I wonder why it worked for you on Linux?
At any rate, I would also suggest a switch to imsave entirely. Here is how it looks like right now:
def main(infile, outfile, iterations):
    b = blur.blur()
    img = misc.imread(infile, mode='RGB')
    (height, width, channels) = img.shape
    blurred = b.main(iterations, img)
    misc.imsave(outfile,blurred.get())

That does indeed look like a bug.  blur.fut operates only with unsigned
bytes (u8), so I don't think there should be any array produced with
that type.  I will take a look.
I have committed your suggested change to blur-png.py.
--
\  Troels
/\ Henriksen

Ugh, I think I know what's going on.
Internally, Futhark does not distinguish between signed and unsigned integers.  This design is taken from LLVM, and works very well for avoiding meaningless casts that do not change representation.
However, it does cause some friction when interacting with Numpy, which does distinguish between them.  For example, you will get an error if you create an array of signed 8-bit integers, then try writing a value that is greater than 127.  That's why the former version of blur-png.py contained the call to the .astype() method (which I will now add back).
This problem will take some effort to fix nicely.  We will have to remember the "original types" of the entry point functions and apply them in the code generator.  Since simple workarounds have proven sufficient so far, it will probably be a while before we get around to adding this bit of polish.

That is a bit surprising. How does it manage comparisons if it does not distinguish unsigned and signed integers?

There are specific instructions for signed versus unsigned
comparisons (and similar for division and the like).
--
\  Troels
/\ Henriksen

I think the problems here have been resolved, so closing the issue.  Thank you for the patience you've shown with all this broken code!

Ok. Do not forget to open an issue for the entry point code generator fix. That one has not been resolved yet.


How to get IBM Q Experience access token for rasqberry-config?

Could you please add a hint how to get the "IBM Q Experience access token" to be entered in rasqberry-config?

After the next release, the raspberry-config script will print the following URL which includes the necessary instructions:
https://quantum-computing.ibm.com/docs/manage/account/

After the next release, the raspberry-config script will print the following URL which includes the necessary instructions:
https://quantum-computing.ibm.com/docs/manage/account/


[FEAT] Add benchmarking for encryption/decryption

Description:
Cripta is a service which creates keys and maintains it (includes key rotation etc.) individually for different Merchants and Users.
We need to add a tool which benchmarks the internal encryption/decryption implementation, And any changes to the application should not cause any Perf regressions.
Possible implementation:

Add benches folder for different benchmarking scenarios
Use criterion.rs for benchmarking
Call this fuction in criterion to benchmark

Submission Process:

Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
Once assigned, submit a pull request (PR).
Maintainers will review and provide feedback, if any.
Maintainers can unassign issues due to inactivity, read more here.
For this issue, please raise a PR on the https://github.com/juspay/hyperswitch-encryption-service repo, and link the issue.

Refer here for Terms and conditions for the contest.

Hello! Could you please assign me this issue?

Assigned the issue to you @khaile

Hey @khaile
Kindly let us know, if you're still working on the issue? If you have any questions or need assistance, feel free to reach out in the community.

Hi can you assign me this issue? @dracarys18


[Plugin] Apollo Studio

Summary
Apollo Studio is a central access hub for interacting with and managing GraphQL APIs.
Some of the key capabilities it provides is

Explorer / Sandbox: web-based GraphQL IDE similar to GraphiQL or GraphQL Playground, but with a swag of nifty features
Schema: centralized schema registry
Schema history: changelog / timeline for schema changes as GraphQL SDLs evolve* Trace warehouse: client and operation metrics
Schema checks: breaking change detection against known query patterns

Project website (if applicable)

https://www.apollographql.com/studio

Context

+1, some sort of integration between Backstage and Apollo Studio would be great!

I have a PoC of this working using Apollos recently improved embedded explorer :)

Awesome @unredundant 👏

First version going out in the next release 🚀

shipped!


[stable/prometheus-operator] fix: remove status field in CRDs

What this PR does / why we need it:
Which issue this PR fixes
Having the status field in the CRDs prevents continuous deployment tools (like
Argo CD) from converging.
Checklist

[X] DCO signed
[X] Chart Version bumped
[X] Variables are documented in the README.md
[X] Title of the PR starts with chart name (e.g. [stable/mychartname])

/ok-to-test

/lgtm

@yann-soubeyrand it's probably worthwhile submitting a PR with prometheus operator directly since these are copied directly from https://github.com/coreos/prometheus-operator/tree/master/example/prometheus-operator-crd etc. I imagine future updates such as #21829 will override your changes.

@mikesplain here it is: https://github.com/coreos/prometheus-operator/pull/3133 ;-)


Monthly Comms for Oct 2024 - Send via SendGrid and Review Stats

Problem statement
Send Oct 2024 monthly update
What you need to know

Content in #15976

Acceptance criteria

[ ] Sent monthly update per #15976 content to all recipients via SendGrid
[ ] Review statistics and provide any suggested changes to Product Manager

Waiting for deployment today. Will schedule for tomorrow.

scheduled the send for tomorrow, Wed Oct 9 @ 9:15AM ET! I will track the metrics as a separate, non-ticketed item. closing this ticket.


Optitype memory error in v1.3.5 due to pandas' reindex

Hi,
Thank you for developing the great tool!  I have been using Optitype v1.3.2 and recently switched to the latest version, v1.3.5.  Interestingly, all the samples that were used to successfully finish with v1.3.2 started failing due to out of memory error in v1.3.5 (tested both docker image and code versions).  I have increased memory from 16GB to 32GB, but no luck so far.  The input FASTQs I used were only HLA-mapping reads from the pre-processing step, so these were only ~5-8MB depending on samples..
Highly likely this memory issue is from pandas reindex implemented in #102 (hlatype = result.iloc[0].reindex(["A1", "A2", "B1", "B2", "C1", "C2"]).drop_duplicates().dropna()).  It would be great if a fix for this memory leak can be investigated further..

Hi @jnktsj , in my own case, a server with 128GB RAM will also encounter this problem.

Hi @b-niu, my solution for now is not using the latest Optitype.  Here is the code snippet of my setup for Optitype v1.3.2:
pip install \
  numpy==1.15.4 pandas==0.22.0 matplotlib==2.1.2 \
  pyomo==5.3 pysam==0.13 future==0.16.0 \
  numexpr==2.6.4 tables==3.4.2 pyutilib==5.8

# razers3 3.5.8
wget 'http://packages.seqan.de/razers3/razers3-3.5.8-Linux-x86_64.tar.xz' && \
    tar -xf razers3-3.5.8-Linux-x86_64.tar.xz && rm razers3-3.5.8-Linux-x86_64.tar.xz && \
    mv razers3-3.5.8-Linux-x86_64/bin/razers3 /usr/local/bin/razers3 && rm -r razers3-3.5.8-Linux-x86_64

# Optitype v1.3.2 (don't use v1.3.5 due to memory leak)
wget 'https://github.com/FRED-2/OptiType/archive/refs/tags/v1.3.2.tar.gz' && \
    tar xzf v1.3.2.tar.gz && rm v1.3.2.tar.gz && mv OptiType-1.3.2 /usr/local/bin/

Thanks a lot @jnktsj ! Nice solution 😄


Recent topics: several keyboard shortcuts don't work

Currently, in recent topics view:

c doesn't launch a compose box
Pressing k repeatedly to go up beyond the topic list, will go to the search bar which then type kkkk (likewise for jjj)
x doesn't launch a private message box

This issue is compromising the experience of users who are highly productive with keyboard shortcuts. I really love the new recent topics view but without being able to quickly trigger a c or x conversation from it, I can't stay there. Also the fact that the k goes beyond the list of topics is annoying because in order to get back we try to press j and it starts typing jjj in the search bar.
Appreciate if Zulip maintainers can fix these shortcuts to work properly in the new default view.

Adding compose for Recent topics is tricky actually. Since the compose box was designed considering there will always be a narrow with messages in it, some assumptions will have to be generalized. We cannot use two instances of compose box, one for RT and other for messages narrow since it will make a bad UX to lose compose box text (or cancel compose) when user switches from RT to other narrow when compose box is open.
I will work on it after completing my long pending followups, let me know if anyone wants to work on it.


Update old .NET beginner video series

Summary
Updated video links to point to the newest .NET 8 videos.
Updated the following pages:

docs/csharp/index.yml
docs/csharp/tour-of-csharp/tutorials/index.md
docs/index.yml

Fixes #39404

Internal previews

📄 File
🔗 Preview link

docs/csharp/tour-of-csharp/tutorials/index.md
Introduction to C#

I'm not sure who did this to you, but there's no a merge conflict.


pubsub: implement message retention

Blockers

[ ] Doesn't work

This adds support for two new options when creating a subscription:

options.retainAckedMessages - If set, acked messages are retained in the subscription's backlog for 7 days (unless overriden by options.messageRetentionDuration). Default: false
options.messageRetentionDuration - Set this to override the default duration of 7 days. This value is expected in seconds (length of retention) or a Date (expiration of retention). Acceptable values are in the range of 10 minutes and 7 days.

Official docs via the proto files: https://github.com/googleapis/googleapis/blob/c75ebb5719066289f91d6b8a1f5372d484ac4f75/google/pubsub/v1/pubsub.proto#L358-L370

Coverage remained the same at 100.0% when pulling c47d78cbdb82b56427de6c2a7ee0db7f98de61c0 on stephenplusplus:spp--pubsub-retention into 55d4d5ff6d60c999ee0b3f54d3a67e45ee7fe2a7 on GoogleCloudPlatform:master.

@pongad Is this behind a whitelist? (I am not sure why this does not work for @stephenplusplus.)

@stephenplusplus @lukesneeringer I don't think the whitelist is the problem. If the project is not white listed, you should not see the last two fields in the returned message.

I haven't tested against the real system since I opened the PR, but I would assume if nothing has changed on the backend, we should see the same result. The CI for PRs only run unit tests, which mock the back-end API.
Is anything about the request incorrect? Are there permissions for my service account that might affect the result? Maybe something about the topic needs to be configured to allow its subscriptions to be customized in this way?

I don't see anything wrong with the request. Perhaps @amordkov can shed some light?

Just tested against the real system, and sadly the same result.

Coverage remained the same at 100.0% when pulling 8d109964c7e67d39a99cc91bf426567018741990 on stephenplusplus:spp--pubsub-retention into 40abb0b0fc3868900cd342c84d13069c128cc5a5 on GoogleCloudPlatform:master.


Support for insert/delete/update wrappers

As originally requested in https://github.com/staabm/phpstan-dba/issues/472#issuecomment-1368637186, I was wondering if it would be possible to support Doctrine-style wrappers for write operations.
For example, an insert method is converted into a query as follows:
$conn->insert('user', ['username' => 'jwage']);
// INSERT INTO user (username) VALUES (?) (jwage)

This conversion is described explicitly in the help text for the following methods:
Doctrine\DBAL\Connection::delete
Doctrine\DBAL\Connection::insert
Doctrine\DBAL\Connection::update
If supported, my expectation would be that PHPStan could identify if any of the table or column names did not exist.
In addition to the Doctrine methods, I also have custom wrappers that use a similar interface (i.e. table name as first argument, column name-value array for any additional arguments), but perform a query that Doctrine doesn't have a convenience wrapper for, e.g.
$myconn->replace('user', ['username' => 'jwage']);
// REPLACE INTO user (username) VALUES (?) (jwage)

As such, I would find it very useful to have some generic way to support interfaces like these. I have no idea what would be easiest in terms of implementation, but I was imagining the following possibilities:

A SyntaxError class that could be specified in the PHPStan config, e.g.class: staabm\PHPStanDba\Rules\SyntaxErrorInQueryWrapperRule # hopefully w/ a better name!
tags: [phpstan.rules.rule]
arguments:
    classMethods:
        - 'My\Connection::replace'

Parameter types similar to class-string that could identify table/column names, e.g./**
 * @param phpstandba-table-string $table
 * @param array<phpstandba-column-string, mixed> $params
 */
public function replace(string $table, array $params)

I'm happy to help in whatever way I can, though I should note that I'm a complete newbie when it comes to extending PHPStan, so would benefit greatly from some pointers if you want me to submit a PR. :)
Thank you for your time, and for all the work you've done on this amazing project. I'm super excited to finally have some confidence in my SQL queries!

Atm the phpstan-dba api is based on sql queries.
We could add a new reflection api for the database schema so we are able to built new rules in which database table and column names are used in such a plain way.

Unfortunately, my PHP projects are open source volunteer work that generate negative income, so I cannot commit to being a sponsor at this time. That said, I'll gladly buy you a "coffee" from time to time!
I'd be willing to try to contribute to this effort. Is there any infrastructure already in place for such a feature? Do you have any pointers for what I could look at to get started? Thanks again!

That said, I'll gladly buy you a "coffee" from time to time!

thank you for that morning coffee today :-).

I'd be willing to try to contribute to this effort. Is there any infrastructure already in place for such a feature? Do you have any pointers for what I could look at to get started?

Atm we have QueryReflection and several AdapterReflection (like DibiReflection), but no generic SchemaReflection yet.
I think a good start could be creating a new src/SchemaReflection folder and add simple classes which can represent tables and their columns (value objects) and a new SchemaReflection class which can be used to lookup the schema and can return said value objects.
please keep it simple. having just the table and column names for now, seems like a good first start.
we can things like native column types etc. later.

btw I am in the process of building the SchemaReflection part in https://github.com/staabm/phpstan-dba/pull/505

Schema reflection landed on the main branch. You can use it to lookup table/column names and report errors.

Great, thank you! I am working on a PR for this now.


No connection pool with 'primary' found

I'm seeing the following error when I run my rspec tests from a rake build:
...
 12) ErrorsController should log a FATAL if a redirect from within 404s
      Failure/Error: raise ConnectionNotEstablished, "No connection pool with '#{spec_name}' found." unless pool

      ActiveRecord::ConnectionNotEstablished:
        No connection pool with 'primary' found.
      # .../activerecord-5.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:1007:in `retrieve_connection'
      # .../activerecord-5.2.0/lib/active_record/connection_handling.rb:118:in `retrieve_connection'
      # .../activerecord-5.2.0/lib/active_record/connection_handling.rb:90:in `connection'
      # .../activerecord-5.2.0/lib/active_record/fixtures.rb:536:in `create_fixtures'
      # .../activerecord-5.2.0/lib/active_record/fixtures.rb:1031:in `load_fixtures'
      # .../activerecord-5.2.0/lib/active_record/fixtures.rb:1002:in `setup_fixtures'
      # .../activerecord-5.2.0/lib/active_record/fixtures.rb:860:in `before_setup'
      # .../rspec-rails-3.7.2/lib/rspec/rails/adapters.rb:126:in `block (2 levels) in <module:MinitestLifecycleAdapter>'
      # .../rspec-core-3.7.0/lib/rspec/core/example.rb:447:in `instance_exec'
      # .../rspec-core-3.7.0/lib/rspec/core/example.rb:447:in `instance_exec'
      # .../rspec-core-3.7.0/lib/rspec/core/hooks.rb:375:in `execute_with'
...

Dynamoid worked prior to upgrading from Rails 5.0 to rails 5.2, which might be the culprit.
My (single) model object:
require 'dynamoid'

class Coffeebrand
  include Dynamoid::Document

  table key: :brandname
  field :rating
end

My initializer that sets up Dynamoid:
require 'dynamoid'

Aws.config.update region: 'us-east-1'

Dynamoid.configure do |config|
  config.region = 'us-east-1'
  config.namespace = nil
  config.warn_on_scan = false
  config.timestamps = false
  config.logger.level = :debug
  # config.endpoint = 'http://localhost:3000' # for testing with Amazon Local DB
end

I don't have a config/database.yml because I don't connect to any SQL-based databases.
I tried connecting to various databases, but still see the same error above.
It looks like rspec setup for fixtures is trying to connect to a database maybe...?

Looks like this issue isn't connected to Dynamoid.

It looks like rspec setup for fixtures is trying to connect to a database maybe...?

I think you are right. If you don't use ActiveRecord and don't set up connection with config/database.yml/DATABASE_URL env variable ActiveRecord shouldn't be required at all. Maybe this post can help.
Does it make sense?

Since it’s been five months, I hope things are working well for you now. I’ll close the issue until we can confirm it’s still happening. I’m happy to continue further discussion whenever needed.


enhancement: Dynamically updating CUDA EP options

This PR is based on https://github.com/triton-inference-server/onnxruntime_backend/pull/242 to add the flexibility to allow users to provide CUDA EP options in a flexible fashion. Note that this PR doesn't include the update for TRT options.
Before, the CUDA EP options are set within the parameters field:
...
parameters { key: "cudnn_conv_algo_search" value: { string_value: "0" } }
parameters { key: "gpu_mem_limit" value: { string_value: "4294967200" } }
...

After this enhancement, users are able to set any kinds of CUDA EP options just like the TRT EP:
optimization { execution_accelerators {
  gpu_execution_accelerator : [ {
    name : "cuda"
    parameters { key: "cudnn_conv_use_max_workspace" value: "0" }
    parameters { key: "use_ep_level_unified_stream" value: "1" }}
  ]
}}

For backward compatibility, setting CUDA EP options within the parameters field should still work.
Related PRs:
https://github.com/triton-inference-server/backend/pull/100
https://github.com/triton-inference-server/core/pull/368

Updated doc in commit https://github.com/triton-inference-server/onnxruntime_backend/pull/256/commits/6ecda125c665ce1a7a7403b4c983b0c5aba75f23. Can ignore the commit for formatting.

Thanks a lot for taking a look at my PR. This looks great to me.

@gedoensmax @krishung5 Great work improving the parameter specifications in ORT backend!


Flash types other than alert and notice need to be placed in flash hash

Adding :alert to the types which can be placed in a bare Hash; all
others will be passed in a Hash nested inside a top-level flash Hash.

Coverage increased (+0.0008%) to 99.919% when pulling a349728f0824c52adfd86e5452aea2f299e4d8dd on tcopeland:redirect_followup into 9a768ddf850ac3aebeb3801b55c075d12dbc2d64 on xinminlabs:master.


clarify that Global Default Private Registry does not work when using namespaced registry on downstream RKE2

public page to be modified: https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/authentication-permissions-and-global-configuration/global-default-private-registry
ISSUE: When creating a global private registry, users may want to use a namespaced registry such as "https://website.com/prod-registry". This will work if downstream clusters are RKE, but if they are RKE2, this will not work at the moment. SURE-5910 is put in for fixing this issue but it will take time. For now, users should be directed to https://docs.rke2.io/install/containerd_registry_configuration or new docs on configuring namespaced registries using mirrors/rewrites through the Rancher UI, which we do not currently have.
For now, a warning that namespaced global private registries will not work in downstream RKE2 clusters without additional configuration using https://docs.rke2.io/install/containerd_registry_configuration.
If more documentation on configuring through the UI will be necessary, the user will need to configure the global private registry, then configure the registry on each downstream RKE2 cluster. This is done by going to Cluster Management > rke2 cluster > Cluster Config > registries > Select "Configure advanced containerd mirroring and registry authentication options" and add the namespaced registry to the registry hostname and mirror endpoints.

@tlatino

new docs on configuring namespaced registries using mirrors/rewrites through the Rancher UI, which we do not currently have

I see you listed the steps for configuring the downstream registries. How does the user configure the global private registry in preparation for this? Thank you.


[Feature]: QuantumSystem that stores composite system and level info for subspace embeddings

Feature Description
I want to have the functionality to create, e.g., a two transmon system by first creating two individual transmon systems and combining them into one composite system, so for example
sys1 = Transmon(levels=4)
sys2 = Transmon(levels=4)
coupling = Coupling(sys1, sys2)
sys = QuantumSystem(sys1, sys2, coupling)

this will make some useful functionality possibility like, e.g.,
op = gate(:X)
embedded_op = embed_operator(op, system; component=1)

to embed gates in the qubit subspace of the multilevel system.
Importance
3
What does this feature affect?

[X] quantum system construction
[X] problem setup
[ ] problem solution
[ ] problem performance
[X] solution analysis
[ ] plotting
[ ] documentation
[ ] tests
[ ] other (please specify below)

Other information
It should be noted that this will also affect the way leakage suppression is implemented.

merge issues resulted in a forced push to main.


Add addCursorFlag method

Currently, there's no way to pass cursor flags to the mongodb native
cursor such as noCursorTimeout, and adding the addCursorFlag
function allows options to be set on the native cursor object. This uses
a separate _flags object stored on the cursor since the flag options
do not need to be passed to count or size methods.

Coverage increased (+0.04%) to 96.675% when pulling 2bb9e986fe3a8c228de02d90b8731f43d38071a8 on mixmaxhq:ghmeier/add-addCursorFlag into 90dd80bd1cfe812be0746ce99f6ec15a886f15d5 on saintedlama:master.

Any updates here? This is a pretty useful flag to set :)


GTK File Chooser is too big for my screen

Hello. I found that GTK file chooser is bigger than my screen. It's very strange so i need to manually resize this window every time. How can I fix it in dwm?

https://github.com/LukeSmithxyz/voidrice/issues/1203
Summary: You can change the size with: "mod+right mouse button" and rearrange with "mod+lmb". It will stay persistent.

https://github.com/LukeSmithxyz/voidrice/issues/1203
Summary: You can change the size with: "mod+right mouse button" and rearrange with "mod+lmb". It will stay persistent.

Yes. But it doesn't stay persistent.

It stays persistent for me. Maybe there are configuration differences. I've recently installed LARBS with Voidrice configs. Then I've made my extra configurations.


Move to Appsody and Open Liberty Operator 0.6.0 for Kabanero release 0.10.0

Move up to a new Operator

@marikaj123 is this for 0.9?

@jgawor Marika added the 0.10.0 release so I don't think it's for 0.9.0.  I don't think the Appsody or OL operators 0.6.0 are available yet, so I've added the blockedBy-Appsody label as well.

Ok. Thanks. I don't see the targeted release information from regular GitHub issue.

@jgawor - I am preparing for Kabanero release 0.10.0. Appsody operator will become available later in May after the GM date of Kabanero 0.9.0.

merged, closing


Update cias v1.1-v1.9

What would you like to have added to the Store?
All of the existing updates cias for minecraft 3ds.
What is this content? What does it do?
Cias that will allow for easy upgrading and downgrading of what version the game runs.
What type of content is it? World, texture pack, skin(s), mod, misc, etc.?
update/misc
Screenshots of the content (240x400 pixel resolution is preferred)
N/A
Icon for the content (48x48 pixel resolution is preferred)
N/A
Repository for the content
https://archive.org/details/3ds-dlc-and-updates-encrypted
Download link for the content
N/A
Additional notes
all the updates for the europe and jap versions are also in the archive.
The developers and maintainers of this Unistore may have to modify the content for the store (such as resizing screenshots or changing the content so it may be able to be downloaded properly, etc.)

This will not be added. I have had controversy in the past for hosting pirated content on my store. As much as I would like to have them on my store, I can't because people will get mad at me.

I don't understand how update files are piracy nor how people will be mad but I will respect your decision.

I don't understand how update files are piracy

Updates still count I am pretty sure.

So downloading the latest update From the eShop is piracy aswelI guess. There all freeware I don't see Nintendo comminng to hunt you down.


[VL] Fix type mismatch issue for typed imperative aggregate

What changes were proposed in this pull request?
For some typed imperative aggregate functions, like collect_list/ collect_set, spark will make agg buffer stored as BinaryType in partial/ partial merge phase, even though these two functions' output is ArrayType. Gluten has no such special handling. So for velox backend, agg function's raw data type is used for agg buffer in partial/partial merge. Thus, there will be a type mismatch issue in the latter shuffle operator, as gluten plan inherits attributes from its corresponding spark plan. For collect_list/ collect_set, shuffle expects BinaryType, but gets ArrayType.
This patch includes the code changes made by Jian, Ma.
The current gap:
Spark's collect_list/collect_set dismisses null input, but velox doesn't.
(Fixes: #ISSUE-ID)
How was this patch tested?
Imported spark UTs.

@PHILO-HE can you please do a rebase? thanks, -yuan

Is there any new progress on this PR?

@PHILO-HE can you please help to update the status in PR desc? I think below issue is fixed, however three are some other issues.
The current gap:
Spark's collect_list/collect_set dismisses null input, but velox doesn't.

-yuan


Don't understand how to use relationships

There seem to be very few real examples in the code (yes, I have looked at the tests, but it's hard to tell what's real use, and that's testing internal structures).
I was expecting some way of designating that this field in this struct should be represented as a link in the JSON. I'm not sure I understand how linked resources are intended to be used with this code.
Any help please?
Thanks.

My apologies. Some of the more complex examples (links, metadata, relationships) I haven't written a ton of documentation around and have accepted a bunch of contributions to round that functionality out. Can you link me to what exactly you are trying to do within the JSONAPI specification so I can better answer your question or turn this into a trackable issue to improve? Thanks!

@tomq42 did that solve your problem? I'd like to resolve this issue.

Yes, I did figure that out.
What I realised was that json api prohibits relationships at lower levels in the
"body". So serialising the body is a straightforward golang json task, it
doesn't need any special annotations and so on. The relationships can only exist
at the top level, and have to be created manually.
What I wanted was to have a relationship down in a nested object somewhere. I
had a nested object containing a pointer and I wanted that to be expressed as a
relationship. JSONAPI doesn't allow that.
Thanks.

On 11 May 2016 at 18:35 Derek Dowling<EMAIL_ADDRESS>wrote:
@tomq42 did that solve your problem? I'd like to resolve this issue.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/derekdowling/go-json-spec-handler/issues/27#issuecomment-218532568


Viewing synced data when you turn on sync is confusing

Problem
When turning on sync on secondary machine, it asks to either replace or merge the synced data. There is also an option to "Show Synced Data" which leads to a confusing flow:

From this point, there is nothing guiding the user back through the flow to continue to turn on sync and is quite confusing. I would expect a better guided experience to:

View the difference of the local and synced data
Choose to either replace or merge
Complete the sync process

Proposal
Create a specific view for this scenario where a user can view the diff between the local and synced data and then allow them to either replace/merge all or do it one by one:

Created specific view Synced Data for this scenario. Will think about adding upload and download buttons.

Here's an updated proposal with some feedback from the Redmond team's standup and a prototype flow:

Update terminology from "Show Synced Data" => "Manual Sync"
Show a filtered view where we only show the items that need to be resolved
Flatten the list to simplify the mental mode for the user
User Info and Pass icons to signify that an item has been resolved
Have a button that lights up when all items have been resolved (this is a stretch item, we can try a check button in the header)
Once the user clicks the button, Sync is turned on and changes are pushed to the server

I like it. My feedback:

How about having single Replace All (Local) and Remote All (Remote) buttons on the view?
How to represent a deleted or added snippet?
It seems not obvious to me how a user can merge data (say settings) from this view and confirm?

How about reusing some SCM concepts here? For eg:

Using SCM badges and decorations to represent Added, Delete, Modified files ?
Instead of cloud download and upload icons, show + with cloud badge and + icon to accept cloud and local respectively?
Having Accepted section/root  and move accepted entries under it.

Being more like SCM will make it easier for user to understand to do changes manually and accept them (helps merge scenario).

https://github.com/microsoft/vscode/issues/100791#issuecomment-648569454

@Tyriar had an interesting idea where the button options could be:

Replace Local (most common on secondary machines)
Manual Sync (this would show the proposed ui)
Cancel

Thoughts? This way in the manual sync flow you can still choose the primary to replace the remote.

My thought was actually rolling Replace Local into Manual Sync so the options are:

Merge
Manual Sync (which shows proposed UI plus maybe a more prominent way in the sidebar to replace local)
Cancel

4 buttons in a dialog is a lot.

I like it to show only Merge and move Replace actions to Manual Sync.

I like the simplicity of the two options now, though it does make it a bit harder to replace local on secondary machines (which might be a more common scenario). But this now makes both the "replace local" and "replace remote" a consistent experience.

How about having single Replace All (Local) and Remote All (Remote) buttons on the view?

I think we can show the same icons on the single file entries at the very top as global actions for replace all

How to represent a deleted or added snippet?

I assume that in the diff the one where it's deleted would be empty/red. If the entire contents of the file is empty I would assume that file is deleted.

It seems not obvious to me how a user can merge data (say settings) from this view and confirm?

That is true, we could introduce a third icon in the list or add a context menu item for it

Here is the updated manual sync flow:

Accepting changes manually and turning on sync

More actions - resolving conflicts, discarding changes

Closing this and feedback will be tracked here #102581


Implement Dependency Flow for standard => corefx

This is the first round of implementation of https://github.com/dotnet/source-build/tree/dev/release/2.0/Documentation/auto-dependency-flow.
/cc @dotnet/source-build-contrib

@jaredpar and @weshaggard - I think all the feedback has been addressed.  Let me know if this can be merged.


fix(runtime-core): invalidating jobs with duplicates

The scheduler queue can contain duplicates of the same job in some circumstances, i.e. if the job gets added again while the queue is flushing, after it has already run the first time.
invalidateJob() currently doesn't take account of that, just searching for the first index:
const i = queue.indexOf(job)

This could be fixed using lastIndexOf(), but instead I've added a start index to the indexOf() call. This should be sufficient, as a job should only appear once in the unprocessed part of the queue.
Adding an index should theoretically make the indexOf() a bit faster, though in practice it's unlikely to matter.
The incorrect invalidation logic can lead to components being rendered unnecessarily. In practice this is quite difficult to hit in real code, as it takes some quite specific circumstances for invalidateJob() to be called with duplicate jobs in the queue:
SFC Playground
In the example above, clicking the button logs Child rendering 3 times, when it should just be logged twice.
The same example with this PR:
SFC Playground - Fixed

/ecosystem-ci run

SFC Playground
In the example above, clicking the button logs Child rendering 3 times, when it should just be logged twice.

It only logs twice for now, maybe that already fixed via some commits.

/ecosystem-ci run

It only logs twice for now, maybe that already fixed via some commits.

Good point.
I did some digging... this is a bit difficult to explain, but I'll try my best.
invalidateJob still contains the original bug, that hasn't been fixed on main. The test case I added still fails on main and passes with my fix.
The reactivity system improvements in 3.4 are hiding the issue in my original example. The wrong job gets invalidated, but it gets away with it because the component doesn't actually end up rendering.
invalidateJob is only used in one place:
https://github.com/vuejs/core/blob/cf8cd1d97ec1de139a68ba9adfb207625cd2fe2d/packages/runtime-core/src/renderer.ts#L1291
So the only way to hit invalidateJob in application code is via an update job. But in 3.4, that update job was changed to this:
https://github.com/vuejs/core/blob/cf8cd1d97ec1de139a68ba9adfb207625cd2fe2d/packages/runtime-core/src/renderer.ts#L1585-L1589
This is why my original example no longer renders 3 times, because the effect.dirty check prevents the third render. The job is still incorrectly queued, but the dirtiness check stops it running.
This raises another question: do we actually need to invalidate the update job in the first place? If the dirty flag stops it running then why bother?
So, in summary...

I suspect invalidateJob can just be removed, as we don't actually need it. But...
If there is a reason why it is still needed, then my fix is still needed to ensure it invalidates the correct job.

@skirtles-code
Thanks for your explanation. I marked it as need guidance, waiting for Evan's input.


Updated gradle cache example

Why:
The example using gradle caches is outdated according to https://github.com/actions/cache/blob/main/examples.md#java---gradle (wich I changed with a PR recently), if copied&pasted could cause gradle builds in GH Actions to not use the cache properly (causing slower builds than needed).
What's being changed:
The example using gradle caches.
Check off the following:

[x] I have reviewed my changes in staging. (look for the deploy-to-heroku link in your pull request, then click View deployment)
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

CODE_OF_CONDUCT.md

CODE_OF_CONDUCT.md

@odin-delrio Thanks so much for opening a PR! I'll get this triaged for review ⚡

@odin-delrio Thanks so much for opening a PR! I'll get this triaged for review ⚡


filenames with spaces lead to error: source and destination are required

Every time kubycat tries to syncronize a single file called saving and loading.jl it fails with
- error:
 ---------------------------------------
 - error: source and destination are required
 ---------------------------------------
 - exiting with code 1...

I guess it is because of whitespace issues.

It would be really awesome if this Bug could be fixed. I am running multiple times a day into it.


Crash on b80c72c7ddbf79147d64759c8659eb5939d0327e on nixos

unfortunately no crash report from hyprland, the only thing I have is its output and here's what that tells me:
[ERR] [hookSystem] Hook from plugin 15255a0 caused a SIGSEGV, queueing for unloading.
[LOG]  [PluginSystem] Plugin split-monitor-workspaces unloaded.

launching without the plugin works fine, with it crashes instantly

Might not be the plugin
https://github.com/hyprwm/Hyprland/issues/3993

check the issue linked in that one (https://github.com/hyprwm/Hyprland/issues/3985), it's definitely this plugin

Attempted to use it on Nix with the recommended configuration and it just says
/nix/store/6aylakgmzvcfvz5xsf85skpz8njf38bm-split-monitor-workspaces-0.1/lib/libsplit-monitor-workspaces.so```

Trying to do it inside of the terminal just returns

~
❯ hyprctl plugin load /nix/store/6aylakgmzvcfvz5xsf85skpz8njf38bm-split-monitor-workspaces-0.1/lib/libsplit-monitor-workspaces.so
error in loading plugin
~
❯
Is this related?

When you say it works fine, do you mean it functions properly and everything? I just updated to the latest git for Hyprland and while I am not having any crashing I am noticing that even though the plugin is loaded, the system isnt behaving as if the plugin is loaded
@jacekpoz

it all works properly when loading manually / rebuilding but I didn't check on the latest commit
I'll let you know my current hyprland commit and check on latest when I have time
On December 6, 2023 1:07:15 AM UTC, sdooweloc @.***> wrote:

When you say it works fine, do you mean it functions properly and everything? I just updated to the latest git for Hyprland and while I am not having any crashing I am noticing that even though the plugin is loaded, the system isnt behaving as if the plugin is loaded
@jacekpoz
--
Reply to this email directly or view it on GitHub:
https://github.com/Duckonaut/split-monitor-workspaces/issues/34#issuecomment-1841908360
You are receiving this because you were mentioned.
Message ID: @.***>

currently on 59cb0e20def602c0fe928c40f8398daa7ea1427d, will check on the latest commit in 3-4 hours

indeed, nothing changed in d74607e414dcd16911089a6d4b6aeb661c880923

hmmm interesting. im on 8bd86cf37e245088433156796f1bc72542ca09ad and it isnt playing nice. Maybe I try a nuke and repull of things.

indeed, nothing changed in d74607e414dcd16911089a6d4b6aeb661c880923

yeah nuking the plugin path and repulling seems to have fixed things strangely. Thanks for checking lol

just tried that, nothing changed
are you on nixos as well or another distro?

Sorry I hadnt tried a restart of Hyprland yet to see if the error or functionality persists I was just meaning doing a nuke and re clone fixed the plugin not working at all lol

I have it working now kinda, but I'm not using the newest commit just the one NixOS ships. However, when trying to use it on the newest commit I didn't have crashes, just said it couldn't load. I have my configs uploaded on GitHub, however they are about 9 months out of date. I will date the repo to my current configs soon hopefully though

just updated to af6aae4e12b96fff701d8ae8fcb48ea8bb51009f, no longer happening
if anyone still has this please comment, I'll reopen


Update url scheme for "Try in a playground"

No worries, was easy to edit! It's the image tests that fail but the html snapshot is generated from the same test as the image. Could pull those apart tbh if you insist on never buying an Mx machine ;)

Or just let me know when you'd like me to run snapshots 😂


Added changes for having the network interface syntax regexp exposed …

…within a specific constant
Also fixed the fact that tcp and udp binds previously had mandatory [ ] due to differences between regular expressions used.
TODO: Need to test this on Linux.

@jitsni @sbadugu Hello, Jitu, I have just created a PR with the changes as per this PR's description. This impacts the same area of code as @Anisotrop 's PR

can you resolve conflicts ?

@jitsni @sbadugu Hello, Jitu, I have checked in the changes for resolving conflicts.
Also, I have modified UdpResourceAddressFactorySpi in order to make use of the ResolutionUtils->parseBindAddress method implemented in Costin's PR in order to keep consinstency with the TcpResourceAddressFactorySpi implementation.
Please provide your feedback on this. Thank you, Irina.


App blocked: Importing apis - Blocked on generating  entities

When importing https://fakerestapi.azurewebsites.net/swagger/v1/swagger.json
The app is blocked on generating  entities

Thanks for letting us know.
I already found an issue will be fixed in next release.


Fix RGBTW Color Temp Range being hardcoded

As @ekobres mentioned in #357 RGBTW Color Temp Range is hardcoded to 0-600 - those commits fix this

HomeKit also expects brightness levels to be synced, while Tuya keeps separate brightness levels - it is also now fixed


Post API call {{authentication}}{{environment}}/registrations failed with errno:7

Environment
Deploy the lab environment by sdk.
Following apps installed:
Proxy
Assets
Authentication
Camunda
Cms
Discovery
Formio
Identities
Services
Core
Admin
Portal
Ui
Symptom:

Get token for anonymous.
Then call POST api {{authentication}}{{environment}}/registrations get errno 7.

                        "errno": [
                            "integer",
                            7
                        ],
                        "error": [
                            "string",
                            "Failed to connect to api.identities.lab.ds port 80: Connection refused"
                        ],
                        "url": [
                            "string",
                            "http://api.identities.lab.ds/organizations"
                        ],

Direct call api: {{identities}}{{environment}}/organizations? will get correct result:

[
    {
        "id": 5,
        "uuid": "c9599da5-35a8-494c-9181-975d78be9694",
        "createdAt": "2017-12-08T14:57:10+00:00",
        "updatedAt": "2017-12-08T14:57:10+00:00",
        "deletedAt": null,
        "owner": "BusinessUnit",
        "ownerUuid": "8acf2710-eec3-4a7a-a665-33f77ba424fa",
        "personas": [
            "/app_dev.php/organization-personas/1b23a845-873a-4e74-b086-497f06d34930"
        ],
        "version": 1
    }
]

Question:
Any suggestion how to fix this issue?

Is the identities microservice enabled here?
If you login as the "system" user and query GET /individuals, do you get a response back?
What is the output of docker ps -a?

Thanks for the prompt reply @mario-digitalstate
Here is the docker ps -a output:
CONTAINER ID        IMAGE                        COMMAND                  CREATED             STATUS                       PORTS                NAMES
8c1255aa2d08        dsportal_ng2admin            "/var/www/run-prod.sh"   About an hour ago   Up About an hour             80/tcp, 443/tcp      dsportal_ng2admin_1
acb953ea8861        dsadmin_ng2admin             "/var/www/run-prod.sh"   About an hour ago   Up About an hour             80/tcp, 443/tcp      dsadmin_ng2admin_1
ed82447a5928        nginx:1.11-alpine            "nginx -g 'daemon ..."   About an hour ago   Up About an hour             80/tcp, 443/tcp      dsservices_nginx_1
d9b1595bbbef        dsservices_php               "docker-php-entryp..."   About an hour ago   Up About an hour             9000/tcp             dsservices_php_1
945be0225177        mysql:5.7                    "docker-entrypoint..."   About an hour ago   Up About an hour (healthy)   3306/tcp             dsservices_db_1
cb42da8e6b23        nginx:1.11-alpine            "nginx -g 'daemon ..."   About an hour ago   Up About an hour             80/tcp, 443/tcp      dsidentities_nginx_1
7bd46ac75263        dsidentities_php             "docker-php-entryp..."   About an hour ago   Up About an hour             9000/tcp             dsidentities_php_1
add15f36efb9        mysql:5.7                    "docker-entrypoint..."   About an hour ago   Up About an hour (healthy)   3306/tcp             dsidentities_db_1
8798cd56ee33        dsformio_formio              "/bin/sh -c /srv/f..."   About an hour ago   Up About an hour             80/tcp               dsformio_formio_1
ed081c9cefe0        mongo:3.4.3                  "docker-entrypoint..."   About an hour ago   Up About an hour (healthy)   27017/tcp            dsformio_mongodb_1
d1c90a867d5a        nginx:1.11-alpine            "nginx -g 'daemon ..."   About an hour ago   Up About an hour             80/tcp, 443/tcp      dscms_nginx_1
db6b5f3c45be        dscms_php                    "docker-php-entryp..."   About an hour ago   Up About an hour             9000/tcp             dscms_php_1
d4444eb1af15        mysql:5.7                    "docker-entrypoint..."   About an hour ago   Up About an hour (healthy)   3306/tcp             dscms_db_1
2ea9cd0ff14a        dscamunda_camunda            "/usr/local/bin/co..."   About an hour ago   Up About an hour             8080/tcp             dscamunda_camunda_1
212875512aae        nginx:1.11-alpine            "nginx -g 'daemon ..."   About an hour ago   Up About an hour             80/tcp, 443/tcp      dsauthentication_nginx_1
cbef2cf0c8ae        dsauthentication_php         "docker-php-entryp..."   About an hour ago   Up About an hour             9000/tcp             dsauthentication_php_1
d39b766e5ea4        mysql:5.7                    "docker-entrypoint..."   About an hour ago   Up About an hour (healthy)   3306/tcp             dsauthentication_db_1
35ee9124f756        nginx:1.11-alpine            "nginx -g 'daemon ..."   2 hours ago         Up 2 hours                   80/tcp, 443/tcp      dsassets_nginx_1
8b0f4edd0755        dsassets_php                 "docker-php-entryp..."   2 hours ago         Up 2 hours                   9000/tcp             dsassets_php_1
9156273e630d        mysql:5.7                    "docker-entrypoint..."   2 hours ago         Up 2 hours (healthy)         3306/tcp             dsassets_db_1
0529ff004177        jwilder/nginx-proxy:alpine   "/app/docker-entry..."   2 hours ago         Up 2 hours                   <IP_ADDRESS>:80->80/tcp   ds_proxy_1
399f3c0b5e91        sdk_sdk                      "/bin/sh"                2 hours ago         Up 2 hours                                        sdk

If I login as the "system" user then query Get /individuals, the response are:
[
    {
        "id": 5,
        "uuid": "d0daa7e4-07d1-47e6-93f2-0629adaa3b49",
        "createdAt": "2017-12-08T14:57:10+00:00",
        "updatedAt": "2017-12-08T14:57:10+00:00",
        "deletedAt": null,
        "owner": "BusinessUnit",
        "ownerUuid": "b20a40d9-b95b-4462-b8f1-c7453b9b7067",
        "personas": [
            "/app_dev.php/individual-personas/df67d9d4-0dc1-4393-972a-a659b24ff117"
        ],
        "version": 1
    }
]

From above print, the identities microservice should work fine.

In docker dsauthentication_php_1, following log indicate service not accessible:
[2017-12-08 15:00:50] request.CRITICAL: Uncaught PHP Exception GuzzleHttp\Exception\ConnectException: "cURL error 7: Failed to connect to api.identities.lab.ds port 80: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)" at /srv/api-platform/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php line 186 {"exception":"[object] (GuzzleHttp\\Exception\\ConnectException(code: 0): cURL error 7: Failed to connect to api.identities.lab.ds port 80: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) at /srv/api-platform/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:186)"} []

If try curl api.identities.lab.ds will get connection refused:
curl: (7) Failed to connect to api.identities.lab.ds port 80: Connection refused

I think this is the same type of error (code 7).

What version of Docker are you running on your host machine?
Which virtualization? HyperV? What version of HyperV?
It feels like an issue between Docker networks/communication.

I run the docker version Docker version 17.09.0-ce, build afdb6d4 on top of windows 10.

Found the issue. We recently updated our internal DNS names to include the environment name (api.identities**.lab**.ds) and the docker-compose files still reflect the old names, making cross-microservice communications not work in lab mode.
Will create a patch in a moment.
Either do a full re-install after I've created the patch, or a quick fix to avoid doing a full install would be to:

Stop the authentication microservice container

cd /srv/authentication
docker-compose stop

Edit the docker-compose file (/srv/authentication/docker-compose.yml) to have .lab.ds, for example:

api.assets.lab.ds:${PROXY_HOST}
api.authentication.lab.ds:${PROXY_HOST}
...

Re-up the container:

docker-compose up -d

Lab DNS has been updated for each microservices.

Thanks, verified that the issue was resolved by the update.
Suggest remove all app before reinstall, as many app's docker-compose.yml been updated.

Great. All of this lab DNS stuff is going away anyway once we have auto-discovery in place!


Scaffolder backend- provide base url for creating apps in Enterprise GitHub

Hey, I just made a Pull Request!
This PR resolves #2906

Add scaffolder.github.baseUrl to the app-config.yaml
Pass the config value to all Octokit instances

These changes allow configuring a custom GitHub enterprise instance for creating new app repositories.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation: (I'm not sure where to add)
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)

@benjdlambert @Rugvip Does this align with the current direction of readers, and centralising where auth/base config sits?


[Communication Chat] Migrate to the test proxy & external recordings

Description
This PR migrates azure-communication-chat tests to use the test proxy and remove unique dependencies on old test tooling. (Communication test infra under the _shared folder is common throughout azure-communication-* libraries, and should be updated/removed in a separate PR.)
Although all end-to-end tests are currently live-only, this re-records tests to use the new JSON format. (A few tests couldn't be re-recorded, but based on package use, lack of playback tests, and time urgency, I left this for future work to resolve.) These new recordings are also pushed to the assets repo (currently here) since we eventually want to store all recordings outside the Python repository. This migration guide has more details about the recording asset migration effort.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

A few tests couldn't be re-recorded

@mccoyp would you mind documenting the details on which tests and the issues you faced?

@mccoyp would you mind documenting the details on which tests and the issues you faced?

Good idea, @xerxestph -- description has been updated with details on the four tests that couldn't be recorded. I also found that one test could be recorded and I just missed it; the most recent commit fixes that 🙂

API change check
API changes are not detected in this pull request.


NuttX mainline is failing

It seems that some recent modification broke the building:
$ ./tools/configure.sh sim:nsh
$ make
/usr/bin/bash: line 1: /bin/llvm-ar: No such file or directory
make[3]: *** [/tmp/nuttxspace/apps/tools/Wasm.mk:112: /tmp/nuttxspace/apps/wasm/libwasm.a] Error 127
make[2]: *** [Makefile:53: /tmp/nuttxspace/apps/examples/hello_all] Error 2
make[1]: *** [Makefile:47: all] Error 2
make: *** [tools/LibTargets.mk:232: /tmp/nuttxspace/apps/libapps.a] Error 2

Note that I didn't select WASM

What is this hello_all ?


Allocate a psuedo-TTY and cleanup container.

Add -t to allocate a tty so Ctrl-C works to terminate the server.
Add --rm so old copies of the container are automatically cleaned up.

This doesn't actually do exactly what I want, as ^C doesn't terminate the container, it disconnects.  With this change, at least ^C makes it easier to run docker kill after.
https://github.com/moby/moby/pull/3240 implies the issue that pid 1 is special, so if you make your service not be pid 1, things work better.

Thanks for your contribution @rspier 👏


Update README.md

minor typo in the code sample

:+1:

Ah, thanks!

Merged in d00e4ad361040552afdc51744cfc523727b1301b.


⚠ Bofrost.at has degraded performance

In a1ec53e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 821 ms

Resolved: Bofrost.at performance has improved in afd5ee5 after 6 minutes.


use native chaos-mesh templates for longevity network

closes: https://github.com/spacemeshos/go-spacemesh/issues/3703
i dropped idea of writing a separate scheduler for chaos tasks, this change basically
reuses chaos-mesh natively.
how to use it:

deploy a cluster of a particular configuration and size. the size can't change, because labels are used to setup chaos-mesh conditions, and chaos-mesh doesn't watch updates.
cluster is partitioned in 10 buckets. to run specific chaos conditions on the node in the specific bucket (for example short disconenct - 0, failure - 1, long disconnect - 2). see how buckets are used in systest/parameters/chaos
additional workload can be also scheduled on the cluster, see TestScheduleTransactions for an example

@countvonzero updated

bors merge

bors merge

bors merge

bors merge

bors merge

bors try

bors try

bors merge


Auto-size columns in metadata viewer

Quite often column widths are too marrow for all columns because DBeaver saves and restores previous column widths.
We need a way to auto-size column widths by using context menu.

verified


Clicking on Print icon, changes icon to empty button in Safari

When clicking on the print icon, the print icon changes to empty square button with no text. This only happens in safari not chrome.

Expected Behavior
Should render and function correctly as in Chrome.
Current Behavior
Chrome works fine.
Safari as listed below.
Steps to Reproduce (for bugs)

https://codesandbox.io/s/zealous-newton-t1x1e in Safari
click on print icon bittpm
icon box is redrawn as empty button
any following clicks on the tool bar, causes each of the buttons to go the an empty button.

Your Environment

Tech
Version

Material-UI
4.10.0

MUI-datatables
3.7.6

React
16.13.0

browser
Safari

etc
https://codesandbox.io/s/zealous-newton-t1x1e

Could you please extract the console log?
It's hard for me to reproduce

https://user-images.githubusercontent.com/9342856/108539984-827f3380-7295-11eb-97e0-c749597150d1.mov
Please see the included screen capture.

I also just cloned the codebase to my local machine and when I build and run dev and then choose Simple for the example, I see the exact same issue in Safari.


Typo in timeoutWith operator

Documentation Related To Component:
timeoutWith operator in https://rxjs-dev.firebaseapp.com/api/operators/timeoutWith
Please check those that apply

[1] typo
[2] error(s) in example

Description Of The Issue
There is typo in example which is embedded from stackBiltz.
###Accidentally imported intrerval insted of interval.

This is fixed with #4884. I think the fix will land with v7.