bug(COMPONENT): DatePicker rounds up invalid dates.

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/components-issue-qvykwk?file=src%2Fapp%2Fexample-component.html
Steps to reproduce:

manually enter 11/31/2020 (invalid date)  into the date field.

Expected Behavior
It should just stay 11/31/2020 so i can validate the date in the backend.
Actual Behavior
The date gets rounded up 12/1/2020
Description:
When I enter 11/31/2020 it will round up to 12/1/2020
When I enter 11/32/2020 it will NOT round up and why does it round up 11/31/2020 to 12/1/2020.

Angular:8 and 10
Browser(s): chrome
Operating System: macos and windows.

The native date adapter uses Date.parse which requires ISO 8601 strings (I.e. "2011-10-10T14:48:00.000+09:00") to get consistent cross browser behavior. See this for more details.
Otherwise

If the String does not conform to the standard format the function may fall back to any implementation–specific heuristics or implementation–specific parsing algorithm.

Meaning you aren't guaranteed to get consistent or correct parsing across browsers.
Even then, with incorrect dates, the behavior varies on whether or not you used the ISO 8601 format or not. In Chrome:

11/31/2020 => 12/1/2020
2020-11-31 => 11/30/2020

That's why we have this in our docs:

Please note: MatNativeDateModule is based off the functionality available in JavaScript's native Date object. Thus it is not suitable for many locales. One of the biggest shortcomings of the native Date object is the inability to set the parse format. We highly recommend using the MomentDateAdapter or a custom DateAdapter that works with the formatting/parsing library of your choice.


Enable workflows on fork-based PRs part II

@grafjo please rebase as this branch is out-of-date

@grafjo please rebase as this branch is out-of-date

ok rebase is done

@grafjo I apologize for the inconvenience caused, but could you please rebase again

@grafjo I apologize for the inconvenience caused, but could you please rebase again

no worries - rebase is done @sbckr

is already in master-branch


new slang added to carioques.

Pre-Submission Checklist

You have only one commit (if not, squash them into one commit).
All new and existing tests pass the command yarn test and yarn lint.

Description
slang added to carioques

Thanks @luciano-nascimento 😄


In-memory Engine: implement read flow -- prefix read

What is changed and how it works?

Issue Number: Ref #16141

What's Changed:
implement read flow -- prefix read

This PR makes RegionCacheIterator support prefix read.
Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[x] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/merge


Allow for back button in App bar

Following material standards, a need for a back button in the app bar is fairly common. The use of a custom icon used to alleviate this problem, however this has been removed in the latest update. I have extended out the default functionality to allow a back button to be shown based on props. Not sure what exactly the strategy is regarding in app navigation.

Thanks for bringing this up @yhbrandon! It seems that we forgot to update the icon prop for AppBar during the transition to using FontIcon. The new replacement prop for icon is iconClassNameLeft. There are also two new props which allow you to add other React Elements on the left and right sides of AppBar. More info about them can be found in the commit's comments here.

Thanks!


Added notification and user as arguments to onRun callback

#56

Hmmmm... looks like we already have this arguments, and you just need to update documentation.


Error: Definition of base has to precede definition of derived contract contract MintableToken is StandardToken, Ownable

Error: Definition of base has to precede definition of derived contract
contract MintableToken is StandardToken, Ownable

Hi @parsparab, thanks for reporting! What version of Solidity are you using?

Hi @frangio , I'm using pragma solidity ^0.4.11; version, I guess which is compatible with all latest files.

But can you tell us what specific compiler version produced this error? You can find out by doing truffle version or solc --version perhaps.

I'm using solidity remix compiler.

Closing because I haven't been able to reproduce the issue. I suspect @parsparab inlined their contracts in the wrong order.


chore: auto label issues based on the template chosen

From my understanding, this should result in auto-labeling based on the template that contirubtors use.

Codecov Report

Merging #9507 into master will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #9507   +/-   ##
=======================================
  Coverage   58.76%   58.76%
=======================================
  Files         385      385
  Lines       12237    12240    +3
  Branches     3020     3022    +2
=======================================
+ Hits         7191     7193    +2
- Misses       4862     4863    +1
  Partials      184      184

Impacted Files
Coverage Δ

...ontend/src/explore/controlPanels/Shared_DeckGL.jsx
0.00% <0.00%> (ø)

.../src/explore/components/ControlPanelsContainer.jsx
67.39% <0.00%> (+0.72%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 980dd2f...c0ada42. Read the comment docs.

Tested it in a test repo


iOS 13 file input does not upload video from library

Problem
iOS 13 file input does not upload video from library
Description
 strangely accepting video from library. The file size is 0, parsing crashes. Direct video filming/uploading works ok. Photos direct/library are ok. Same project code from safari browser works ok.
When debugging APP in safari, I can edit HTML and add pure <input type="file" />, upload video from library, console input by command document.getElementById(123).files and see that fileSize: 0.
Environment, Platform, Device
IOS 13 ( or 13.1.2 ) Iphone X ( any ). Latest plugin versions.

same problem

Hello, I experienced the same problem but I was able to nailed down what the issue was.
You must have a permission to acccess the library first before you can upload the video file to your server.

Hello, I experienced the same problem but I was able to nailed down what the issue was.
You must have a permission to acccess the library first before you can upload the video file to your server.

Thank you.
I fixed it using cordova-plugin-photo-library and called cordova.plugins.photoLibrary.requestAuthorization().

Hello, I experienced the same problem but I was able to nailed down what the issue was.
You must have a permission to acccess the library first before you can upload the video file to your server.
@ejlocop
Thank you.
I fixed it using cordova-plugin-photo-library and called cordova.plugins.photoLibrary.requestAuthorization().


update for workflow jobs

add workflow job page for 1.16&dev
add lark trigger for workflow

This change is

add nacos to workflow

add mysql to workflow


any documentation?

I am looking for documentation that says what can and canont be done with the template.
It says to open the html and that is it. These templates would be more useful if they provided instructions.
I see how you can have a layer list, table, etc. but that is it, nothing about how to actually alter the code if you want to set something up. and only one table? Please make a habit of providing instructions since most of these examples do not and its not only developers that would like to make map apps look nicer. thanks

since our ArcGIS Online templates are based on our ArcGIS API for JavaScript and conventional HTML, there is actually an incredible amount of flexibility (and very few limitations) with regard to how they could conceivably be customized.

nothing about how to actually alter the code if you want to set something up.

What exactly do you want to 'set up'?

I guess what I mean is that yes, the templates are useful if you are a developer and know the Java API. If you are a casual user who only wants to do a bit of customization, it is hard to work with no instructions on where you should alter some code for basic changes. I have had luck asking in these issues on how to add logos, etc. but really, basic explanation would be helpful. If I remember correctly, the text on how to use this app says look at the html file and go. When I looked at the html it did not look like that was where you added your webmap ID, etc, (Looked like you do that in a .js file), so to a user like me that is confusing.
There is not much in between the AGO templates , which are very limiting in looks but have instructions, and the templates here, which provide a lot of flexibility as you mention but no basic readme's. I appreciate all the samples but it is a disappointing to find that for web app templates w/ "no programming required" you can't do  much to make apps have 'your own' look without being a developer. It gives a false sense of what can really be accomplished without knowing java. I am getting by somewhat bu guessing where i need to change frame sizes, colors, etc. but it would just be nice to have a basic document on how things go together in these samples. Maybe gitbub isnt the right place since its for real developers and not code stealers like me but somewhere I would like a useful basic template that can be tweaked slightly to make it my own. And my ideal template would have all types of functionality in one app template. Some allow layer lists, some allow tables, very few allow everything (unless I just do not now how to expose this). And maybe one day I will be able to use a app template that will show my related records.

@upcamogie  you can customize quite a bit of the template using the configuration panel in ArcGIS Online. Once you do this the app url will contain an appid that you can specify in the downloaded version of the template and the customizations you made will be applied.
For additional customizations try posting the questions to the JavaScript forum. I think the templates (and samples) are a great place to start digging around when you are trying to learn JavaScript. There are also some good online sites like Code School that provide intro courses in HTML, CSS and JavaScript and would be a good place to start if you want to learn how to make customizations.


Really long names don't get wrapped, just get truncated with ...

Excuse the name, just see how it gets truncated

State as known issue in the UG


Feature/pre postdecorator

@TurtleARM please verify why CI is failing, then we can merge the PR :)

@TurtleARM please verify why CI is failing, then we can merge the PR :)

This example requires the latest mia-service-java-library features from maven.


Gosund CP5 power strip (cuco.plug.sp5) wifi reconnects when integrate in MioT Auto

Hello.
I bought Gosund CP5 power strip (cuco.plug.sp5) and tried to integrate it in MioT Auto as Local mode,
but I have a problem:
Just when I integrating my CP5, It start to reconnect to Wi-fi every 1 minute (or less), and turns off and on all them switches automatically.
In HA logs I have a Error about Unable to discover device  (screenshot).
I have all 6 switches in device (4 channels, 1 usb channel, and 1 common switch) but it in unavailable states.
When I delete Miot Auto integration, powerstrip works well in mihome, router sessions without disconnects.
Miio protocol produces disconnects.
Please help me, what I can check/edit for getting it work?
One interesting thing - I found and write to another guy, who have same powerstip, and he told me it works perfectly, he used all same versions of this:
HA Core 2021.12.6
Miot Auto v0.4.15 in local mode
cuco.plug.sp5 - 2.1.3_0013 firmware

I think it's because the device can't withstand too high concurrent requests. You can upgrade to branch v0.4.x and try again. I ignored some unimportant services for the device in my latest commit: https://github.com/al-one/hass-xiaomi-miot/commit/44f288f49ecea7d107158770486a0578e88b5bb4.

This branch can only be installed manually or through this shell command:
wget -q -O - https://cdn.jsdelivr.net/gh/al-one/hass-xiaomi-miot/install.sh | ARCHIVE_TAG=v0.4.x bash -

4f36156.
Thank you for quick feedback.

Now the sutiation is better.
When HA starts (or when I integrate device) still have errors in logs (1st screeshot) and my powerstrip turns off and on once (all channels), device again loses Wi-Fi.
Then I need to wait 5-10 minutes and finally I got all 6 working switches (2nd screenshot)  ;3

Testing some more time and did HA restarts few times.
Yep, PowerStrip toggle all them channels and loses wifi all time, when HA restarts (and have same errors in logs).
Without HA restarts all works perfectly.

Still have this errors with all branches, errors are shown while integration or HA starts, power strip toggles all switches at that moment.
What branch I need to test?
Thank you!

Please upgrade master branch and try again.
wget -q -O - https://cdn.jsdelivr.net/gh/al-one/hass-xiaomi-miot/install.sh | ARCHIVE_TAG=master bash -

Many thanks for your work!
Now the situation is next:
Wifi reconnects gone; errors about indicator, custome, lock - gone; switch re-toggles at start gone too.
Switch works well, but:

at integration start I got 2-3 little errors (screenshot 1)
switches bot updates automatically (for example, if a turn off any switch with another way (manually with button on body, Mihome, etc), Got warning about it (screenshot 2)

This outlet has six switch services (including main switch and USB). During initialization, the component will send at least six query requests to the device at the same time. Maybe this is too frequent for the device. But there is no better way.
Maybe you can try to keep this device in only one integration.

This outlet has six switch services (including main switch and USB). During initialization, the component will send at least six query requests to the device at the same time. Maybe this is too frequent for the device. But there is no better way.
Maybe you can try to keep this device in only one integration.

That interesting, outlet works well with MioT raw integration ( https://github.com/ha0y/xiaomi_miot_raw ), no any errors or timeouts.
Only one thing: service switch.toggle not works with switches, but switch.turn_on and switch.turn_off works as well.
State updates of all 7 objects without problems (6 switches and 7th "lock" domain object (for locking physical buttons)).
But anyway, I dont want use Raw integration, it looks like abadoned, last updated 3+ month ago.


Filter default methods

We have a weird test structure where we have Kotlin interfaces implementing test methods as default implementations.  The actual test classes implement those interfaces. Unfortunately the default methods in the interfaces are also returned by findTestMethods.

This could be fixed eg by filtering invalid test methods. The invalid generated test methods are static and take an argument.

Seems to be the same as #13 just with default methods

If you could provide a minimal reproducible example, that'd be helpful in resolving this.

Sure. It is just a default interface method annotated with @Test as
interface MyTestInterface {
  @Test
  fun myTestMethod() {
    assertTrue()
  }
}

I agree that we should be filtering these out - interfaces are not instantiable, and I tested this with the standard adb instrument and it does not find this class by default. I'll look at how we can filter this out, not sure what the representation of default methods is in the dex format atm

Any updates? :)

This was fixed with #22 . I think we still need to do a release that contains that fix though - @drewhannay can you help out with that?

2.0.1 has been released

Great thanks @drewhannay!


WIP Admin auth api

Continuing work started in PR #14808

@6543 updated #14808 which you reviewed. Could you review please. Any advised for addressing the encoding/json denylist issue?


Python 2 compatibility

this PR entails necessary changes and tests for Python 2 compatibility:

io.open() instead of open()
conditionally using unicode() instead of str()
conditionally using collections instead of collections.abc
conditionally using Queue instead of queue
unicode_literals everywhere
copy.copy() instead of list.copy()
removed the handful of type annotations that were there
using super(cls, self) instead of super()
tox for cross-version testing
removed doctr dependency as it was unused

All tests pass on both Python versions.

But how would I do that in a Python 2 virtualenv?

Using the instructions here, from within your python2 virtualenvironment, you can
python2 -m pip install ipykernel
python2 -m ipykernel install --user

There are additional arguments for controlling the name. With the default name of python2.
Stitching
```{python2}
print "No parens!"
```

```{python3}
print("With parens!")
```

gives

In [1]: print "No parens!"

No parens!

In [1]: print("With parens!")

With parens!

But that requires me to have pystitch installed outside the virtualenv, no?

Correct, a python3 virtualenv with stitch, and a python2 virtualenv for your code / report.

Isn't that really complicated? I'd prefer having everything in one virtualenv.

I'd prefer not to have the extra compatibility code cluttering up the library :/
I'm also planning to implement code-chunk caching down the road, which I could see using python3-only syntax and features. Sorry, and I hope this didn't waste too much of your time.


Cannot read property 'parseSignedCookie' of undefined

下边的这个问题是如何解决的呢？

var parseSignedCookie = require('connect').utils.parseSignedCookie;
                                                ^
TypeError: Cannot read property 'parseSignedCookie' of undefined
    at Object. (E:\nodejs\lianxi\chat\app.js:14:49)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3

Hmm, sorry can't understand that language :( If you still have some problems please make issue using english.

oh sorry,that's chinese.I have fixed that problem.thanks.