WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
On the commit 4376c2e, Adding a backref into a viewonly relationship was deprecated to avoid the issue where a backref one2many collection is modified, but the respective many2one relationship cannot be assigned.

However, if the backref is lazy="dynamic", there is no risk of the collection in the one2many side of the relationship being modified in this case, so forgive me if I misunderstood the deprecation, but I think it is unwarranted in this specific case.

Conversely, if the backref is lazy="select" but both sides of the relationship are viewonly, then there should also be no harm, hence no warning, but you might consider this a separate issue.

Here is a simple example file showing the warning that I think is unwarranted (.txt added so it can be attached to a github issue):

test_backref.py.txt

Issue 2:
Migrated issue, originally created by Anonymous

The information_schema view and all its columns are assumed to be in lower case. However, if the database is set up to be case sensitive, then none of these will be accessible to the user and so nothing works.
Issue 1:
React version:

17.0.2, previous versions too

Steps To Reproduce

Set an elements opacity to a value like 50%

Deploy to production and it's changed to 1%

The current behaviour

The opacity of an element gets set to 1% in production if the value in its CSS rulesets is in percentage, Like 70%

The expected behaviour

The opacity value should be 70% (for example)

Way to bypass this is to use decimals while setting opacity in CSS.

Like opacity: 0.7;

Instead of opacity: 70%;

Issue 2:
React version: 16.13.1

Steps To Reproduce

Set a css property background-image: url(...)

Deploy the project (BUG ONLY VISIBLE ON PRODUCTION BUILD)

Link to code example: https://github.com/Jackmt9/portfolio_site/tree/9f6b1f53f33f22386cf473bdc956774027059035

(See about and home page - there should be an image there.)

The current behavior

Opacity of the image reduces to 1%

The expected behavior

Opacity should be as defined, not 1%

##Workaround

Set the opacity value as a decimal instead of a percentage (90% => 0.9)
Issue 1:
Description of the new feature/enhancement

It would be nice to have the ctrl + tab and ctrl + shift + tab to cycle through most recently used (MRU) order. This option is available in almost all tabbed based products (except Chrome :( ). At the very least it is an option that can be enabled if not already the default behavior.

If I have three tabs open and focus tab 2 then tab 0, pressing ctrl + tab should take me to tab 2. Pressing it again should take me back to tab 0. Holding ctrl and pressing tab twice should focus tab 1. (This is all assuming zero-based indexing of tabs as documented in the profiles.json file) Using the ctrl + shift + tab should focus the last (oldest) focused tab currently open.

Proposed technical implementation details (optional)

I would imagine a circularly linked list may be appropriate.

Issue 2:
Environment

windows 10 version: 18362.295

windows terminal version: 0.4.2382.0

Steps to reproduce

my terminal crashed whenever I copy this code from it：

(LinkedNode *)mallock(sizeof(LinkedNode))
Issue 1:
Challenge http://www.freecodecamp.com/challenges/waypoint-say-hello-to-html-elements has an issue. Please describe how to reproduce it, and include links to screen shots if possible.

I noticed that when I scroll the instructions on the left pane, the code editor scrolls too, making me scroll back to the top when I want to type code.

It wouldn't have been an issue if I had only a few Waypoints but with over 1000 hours of coding, it should be fixed please.

Here is a screenshot of the editor when the instruction is scrolled down: https://www.dropbox.com/s/lvcxjdpnmbtuu42/editor-scrolls.png?dl=0

Issue 2:
It might be more convenient if the instruction and coding area scrolled independently of each other so you can refer to each section without having to continuously scroll up and down.
Issue 1:
Describe the bug

db.session.query(***) \
.outerjoin(***, and_(***.model_type_id == ***.id)).filter(
***.model_type_id == model_type_id).order_by(
***.create_time.desc()).limit(size).offset((page-1)*size).all()
# Same with paginate()

The parameters of the first run are limit=20, offset=0, no matter what value is passed in limit and offset later, it will not take effect.

But as long as the first offset is not 0, it can take effect

Expected behavior

Expect limit and offset to take effect no matter what value is passed

Versions.

OS: ubuntu18.04

Python: python3.8.5

SQLAlchemy: Flask-SQLAlchemy 2.4.4

Database: sql server(Microsoft SQL Azure (RTM) - 12.0.2000.8 Feb 20 2021 17:51:58 Copyright (C) 2019 Microsoft Corporation)

DBAPI: {ODBC Driver 17 for SQL Server}

Additional context

Have a nice day!

Issue 2:
Describe the bug

When using Microsoft SQL (12.0.2000.8) OFFSET ? ROWS FETCH FIRST ? ROWS ONLY is wrongly cached.

If I make query without OFFSET first, and then make query with OFFSET -> i continue to receive results without applying OFFSET.

If I make query with OFFSET first, and then make query without OFFSET -> i receive correct results with correct OFFSET.

Expected behavior

No matter in which order I perform queries - queries with and without OFFSET should respect OFFSET.

To Reproduce

session.query(Model).offset(0).limit(25).all() # will return [0;24] items
session.query(Model).offset(25).limit(25).all() # will return [0;24] items again

but this will work fine after restart

session.query(Model).offset(25).limit(25).all() # will return [25;49] items
session.query(Model).offset(0).limit(25).all() # will return [0;24] items

Workaround

Disabling sql cache fixes the issue

Versions.

OS: MacOS

Python: 3.7

SQLAlchemy: 1.4.7

Database: MicrosoftSQL
Issue 1:
Use glide to load a local image with a brief white screen。

Issue 2:
I have one ImageView and a button which, when pressed, loads new image (from disk, not from network) into the same ImageView. Unfortunately it causes the first image to disappear for a second (showing white background) and then it loads the new image. How can I avoid that?

I tried:

Glide.with(this).load(photoToLoad.getPath()).dontAnimate().dontTransform().into(imageView);

But the "blinking" still exists.

The only solution I can think of is using two ImageViews with load listeners and showing/hiding them once the new image is loaded.

Is there any better way to do this?
Issue 1:
Bug report

page performing component.getInitialProps fails to load from link.

Describe the bug

I have a menu consisting of links link to pages e.g.

<Link href="/link">
<a><h2>page</h2></a>
</Link>

The link to the only page containing component.getInitialProps doesnt load. details below

To Reproduce

url: https://next.syntapse.co.uk/drupal

Click any link other than drupal at the top to load a different page and then return to URL above

the address bar changes but the page doesnt load.

Expected behavior

the other pages dont try to fetch data and load fine using so im assuming at this stage the fetch is the cause of the issue

Screenshots

https://next.syntapse.co.uk/drupal

If applicable, add screenshots to help explain your problem.

System information

chrome and firefox

Additional context

Add any other context about the problem here.

Issue 2:
This is bug report

Link does not work with css-module imported. That happens when page with Link has no css, and linked page has. No errors in console, so im not sure about reasons, but there is minimal repo to reproduce:

https://github.com/standy/next-css-error

Bug appears in next@7.0.0 + next-css@1.0.1,

Older next@6.1.2 + next-css@0.2.0 works fine
Issue 1:
http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce-autoscaling/1766/

@davidopp please find an owner.

Issue 2:
Instead of consuming 250 milli-cores, recourse consumer consumes nearly 400 milli-cores. This causes flakiness of autoscaling e2e tests:

http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gce-autoscaling/1521/

Horizontal pod autoscaling [Skipped][Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:47

Oct 28 03:27:29.523: Number of replicas has changed: expected 3, got 4

Logs from controller-manager:

I1028 10:27:25.876466 6 metrics_client.go:135] Sum of cpu requested: {1.500 DecimalSI}
I1028 10:27:25.878913 6 metrics_client.go:172] Metrics available: {
"items": [
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 0
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 180
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 227
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
},
{
"metrics": [
{
"timestamp": "2015-10-28T10:25:00Z",
"value": 122
},
{
"timestamp": "2015-10-28T10:24:00Z",
"value": 80
}
],
"latestTimestamp": "2015-10-28T10:25:00Z"
}
]
}
I1028 10:27:25.884889 6 horizontal.go:154] Successfull rescale of rc, old size: 3, new size: 4
Issue 1:
System info

Playwright Version: [v1.32]

Operating System: [Windows 11, macOS 13.2]

Browser: [All]

Config file

// playwright.config.ts
import { PlaywrightTestConfig, devices } from '@playwright/test';
import { join } from 'path';
import { isCI } from './utils';
const CI = isCI();

// Use process.env.PORT by default and fallback to port 3000
const PORT = process.env.PORT || 3000;

// Set webServer.url and use.baseURL with the location of the WebServer respecting the correct set port
const baseURL = `http://localhost:${PORT}`;

// Reference: https://playwright.dev/docs/test-configuration
const config: PlaywrightTestConfig = {
globalSetup: require.resolve('./global-setup'),
timeout: 30 * 1000,
testDir: join(__dirname, 'tests'),
forbidOnly: CI,
retries: 1,
workers: 1,
outputDir: 'e2e-results/',
reporter: [['list'], ['junit', { outputFile: './e2e-results/results.xml' }]],

use: {
baseURL,
trace: 'retain-on-failure',
screenshot: 'only-on-failure'
},

projects: [
{
name: 'API',
testDir: 'tests/api',
},
{
name: 'Desktop Chrome',
testDir: 'tests/ui',
use: {
...devices['Desktop Chrome'],
},
},
{
name: 'Desktop Safari',
testDir: 'tests/ui',
use: {
...devices['Desktop Safari'],
},
},
// Test against mobile viewports.
{
name: 'Mobile Chrome',
testDir: 'tests/ui',
use: {
...devices['Pixel 5'],
},
},
{
name: 'Mobile Safari iPad',
testDir: 'tests/ui',
use: devices['iPad (gen 6)'],
},
{
name: 'Mobile Safari iPhone',
testDir: 'tests/ui',
use: devices['iPhone 13'],
},
],
};
export default config;

Test file (self-contained)

Steps

Run any test on the page with >> attributes

Expected

The HTML elements with any form of >> should works fine with Playwright including:

&gt;&#x200B;&gt;
&gt;&gt;

Actual

Any HTML elements with >> break the Playwright parser and make many elements on the page not accessible (not only the ones with >> attributes) Pick locator also does not recognize those elements.

Does not work:

&gt;&#x200B;&gt;
&gt;&gt;

Works fine:

&gt; &gt; (space between)
&gt;&nbsp;&gt;

Issue 2:
System info

Playwright Version: [v1.31.2]

Operating System: Windows 10

Browser: Chromium

Other info:

Source code

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], },
},
});

Test file (self-contained)

test('lighthouse', async ({ envConfig }) => {
const browserForLighthouse = await chromium.launch({ args: ['--remote-debugging-port=5097'] }); // less than second
const browserForLighthouse2 = await chromium.launch({ args: ['--remote-debugging-port=5098'] }); // browserType.launch: Timeout 180000ms exceeded
const contextForLighthouse = await browserForLighthouse.newContext({ storageState: 'states/ImLoggedIn.json' });
const pageForLighthouse = await contextForLighthouse.newPage();

// perform some lighthouse checks
});

Steps

[Run the test]

Expected

Both browser instances are created with different ports

Actual

If one instance of browser is already created (it can be created via fixtures or in explicit way, no matter), the second instance doesn't start
Issue 1:
I use a program called scoop to install software which modifies the PATH.

Environment

PS C:\Users\trajano> [Environment]::OSVersion

Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18947.0 Microsoft Windows NT 10.0.18947.0

Terminal Version: 0.3.2171.0

Steps to reproduce

scoop install maven

start up a new tab

run mvn

Expected behavior

Maven should run

Actual behavior

Maven does not run because it is not found in path

Close Terminal (all tabs and windows)

Start up Terminal again

run mvn works again.

Issue 2:
Summary of the new feature/enhancement

When I install an app that updates the path or I update the path manually, it isn't enough to kill an individual tab in the Terminal and start a new one. The new tab still inherits the old, unchanged environment variable values. This means I have to kill/restart the Terminal and lose all my tabs.

Proposed technical implementation details (optional)

Add a Windows message handler for WM_SETTINGCHANGE and update the Terminal process's environment block so that any new tabs get the updated environment variables.
Issue 1:
After i next build and next start on my server, no problem if i open by IP server to show website, but i open by web url have this error.

Sory if a duplicated issues. I can't to fixed.

Uncaught TypeError: c.default.oneOfType is not a function
at Object.<anonymous> (app.js:1)
at n (app.js:1)
at Object.<anonymous> (app.js:7)
at n (app.js:1)
at Object.<anonymous> (app.js:9)
at n (app.js:1)
at Object.<anonymous> (app.js:154)
at n (app.js:1)
at Object.<anonymous> (app.js:66)
at n (app.js:1)

Your Environment

Tech
Version

next
3.0.2

node
8.1.1

OS
macOS

browser
Chrome

Issue 2:
Feature Request

Describe the use case

I have a use case where I need all of the following requests to go to the same function:

POST pages/api/users
PATCH pages/api/users/1
DELETE pages/api/users/1

After reading the docs, I was sure I could catch all of those using this:

pages/api/users/[...slug].js

However, this does not catch POST pages/api/users without an explicit /index.js.

To Reproduce

Try the above scenario (even with GET requests)

Expected behavior

This route:

pages/api/users/[...slug].js

Catches all of these:

POST pages/api/users
PATCH pages/api/users/1
DELETE pages/api/users/1

Screenshots

N/A

System information

N/A

Additional context

Next.js 9.2.2-canary.15
Issue 1:
assert.strictEqual(false, anyArgument) triggers unreachable code error for any code below after the recent @types/node update. This only reproduces with @types/node 10.17.24, 12.12.41, 13.13.8 (published recently).

Note that it only reproduces with false as a value being checked. Replace it with anything else and it will compile.

This looks to me like a tsc problem rather than types problem (I reported it in microsoft/TypeScript#38699) but the fastest fix would be rolling back the @types/node changes, so I'm duplicating the issue here as well.

TypeScript Version: 3.9.3, also reproduces on 3.8.x

Code

import * as assert from 'assert';

const b = false;
assert.strictEqual(false, b);
console.log('really unreachable?');

Expected behavior: should compile with --allowUnreachableCode false.

Actual behavior:

$ npx tsc --allowUnreachableCode false src/index.ts
src/index.ts:5:1 - error TS7027: Unreachable code detected.

5 console.log('really unreachable?');
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error.

This looks to be directly caused by recent releases of @types/node with this commit e910379 included.

I tried using the @types/xxxx package and had problems.

I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript

I have a question that is inappropriate for StackOverflow. (Please ask any appropriate questions there).

Mention the authors (see Definitions by: in index.d.ts) so they can respond.

Authors: @G-Rath as a commit author

Issue 2:
Currently, in a team project, a team member of mine is wanting to use the "SliderObject" interface as a type for certain instance variables and method return types. When I export the interface it works (when I don't already have jQuery being imported in my build). If I already have jQuery being imported, I get duplicate jQuery identifier errors.

.

What are we doing wrong?

FYI, of course changing the type to any will allow the build to work but this does not allow the next developer to understand what type the previous developer was truly working with.
Issue 1:
Bug Report

Current Behavior

if a normal import statetement is used before a export * from 'somwhere' statement, the latter gets pushed to the top. This causes all code in 'somwhere' to be executed before the code from the import.

Input Code

import 'first';
export * from 'second';

becomes

'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});

var _second = require('second');

Object.keys(_second).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _second[key];
}
});
});

require('first');

Expected behavior/code

I expect the second statement to happen second.

Babel Configuration (.babelrc, package.json, cli command)

'try it out' section on babeljs.io

Possible Solution

The generated export * code does look like it might be possible to just move it at the right position. I think it is not allowed to export the same name twice in es2015, so no name could be overridden in the exports object.

Additional context/Screenshots

Issue 2:
Issue originally made by @loganfsmyth

Input code

import 'foo';
export {foo} from 'bar';

Description

'use strict';

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.foo = undefined;

var _bar = require('bar');

Object.defineProperty(exports, 'foo', {
enumerable: true,
get: function get() {
return _bar.foo;
}
});

require('foo');

Note that foo loads after bar.
Issue 1:
Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

airflow 2.4.1

a existing user only have the role Viewer

I add with the UI the role Admin

click on button save

then error ->

[03/Nov/2022:01:28:08 +0000] "POST /XXXXXXXX/users/edit/2 HTTP/1.1" 302 307 "https://XXXXXXXXXXXXX.net/XXXXXXXX/users/edit/2" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0"
[2022-11-03T01:28:09.014+0000] {app.py:1742} ERROR - Exception on /users/show/1 [GET]
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/airflow/.local/lib/python3.7/site-packages/flask_appbuilder/security/decorators.py", line 133, in wraps
return f(self, *args, **kwargs)
File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/fab_security/views.py", line 222, in show
widgets['show'].template_args['actions'].pop('userinfoedit')
KeyError: 'userinfoedit'

What you think should happen instead

No response

How to reproduce

No response

Operating System

Ubuntu 20.04.4 LTS

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

1.7.0

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct

Issue 2:
Apache Airflow version

2.2.2

What happened

Under Security Tab> List users, when show record button for an user is clicked, an error page with some exception - "KeyError: 'userinfoedit'" is returned.

What you expected to happen

Expected page to show the User Info on clicking the show records icon.

How to reproduce

Click on show records for any user under list users in security tab.

Operating System

Ubuntu 20 LTS

Versions of Apache Airflow Providers

No response

Deployment

Virtualenv installation

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

Yes I am willing to submit a PR!

Code of Conduct

I agree to follow this project's Code of Conduct
Issue 1:
I am trying to send a csv file as a base64 encoded string in the body of a post request to a flask server. It works find for small files. But when I try to post a file above ~150k the server does not respond and there is no error message. It seems to get hung up on body = request.get_json(). This non-responsiveness happens through postman and node. To throw a wrench into the problem, I can submit the file fine using pythons requests library. I am not sure what is causing this or what the difference between the three requests. The headers all look really similar and are included in the repo. I have included the minimal server (server.py), working python request (test.py), the not working node request (jstest.js) and the not working postman collection. Thanks for any help.

Here is a simple reproduction MCVE https://github.com/mdemin914/flask-largeish-csv-file-error-reproduction

Environment

Python version: 2.7.13

Flask version: 0.12.2

Werkzeug version: 0.14.1

Issue 2:
from app.controllers.dashboard.admin import dashboard1

from app.controllers.dashboard.supply import dashboard2

app.register_blueprint(dashboard1, subdomain='admin')

app.register_blueprint(dashboard2, subdomain='supply')

but

@dashboard2.route('/')

def index():

return url_for('company.index')

is always appear that "http://admin.domain.com:5000/company"
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-slow-release-1.4/600/

Failed: [k8s.io] Pod Disks should schedule a pod w/ a RW PD shared between multiple containers, write to PD, delete pod, verify contents, and repeat in rapid succession [Slow] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:360
Expected
<string>:
to equal
<string>: 2119336402161049634
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:458

Previous issues for this test: #28010

Issue 2:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke-slow/6057/

Failed: [k8s.io] Pod Disks should schedule a pod w/ a RW PD shared between multiple containers, write to PD, delete pod, verify contents, and repeat in rapid succession [Slow] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pd.go:341
Expected
<string>:
to equal
<string>: 8855151317391201669

Previous issues for this test: #28010