Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust context evaluation to return correct types #1043

Merged
merged 27 commits into from Oct 20, 2020

Conversation

uziasferreirazup
Copy link
Contributor

Related Issues

closes issue #958

Description and Example

Adjust to set context always normalize value.
Adjust SendRequest to just normalize value and create an implicit context.
Remove method trytodeserialize and adjust the evaluation of the expression to return correct type

Checklist

Please, check if these important points are met using [x]:

  • I read the PR Guide and followed the process outlined there for submitting this PR.
  • I avoided breaking changes by not changing public APIs that people rely on.
  • I am willing to follow-up on review comments in a timely manner.

@github-actions github-actions bot added the android This issue directly affects structure and logic of Android project label Oct 17, 2020
@codecov
Copy link

codecov bot commented Oct 17, 2020

Codecov Report

Merging #1043 into release/1.3.1-android will increase coverage by 2.85%.
The diff coverage is 94.23%.

Impacted file tree graph

@@                     Coverage Diff                     @@
##             release/1.3.1-android    #1043      +/-   ##
===========================================================
+ Coverage                    78.23%   81.09%   +2.85%     
- Complexity                    1189     1201      +12     
===========================================================
  Files                          539      540       +1     
  Lines                        15952    15708     -244     
  Branches                       562      556       -6     
===========================================================
+ Hits                         12480    12738     +258     
+ Misses                        3168     2663     -505     
- Partials                       304      307       +3     
Flag Coverage Δ Complexity Δ
#android 77.22% <94.23%> (-0.04%) 1084.00 <23.00> (+12.00) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@sonarcloud
Copy link

sonarcloud bot commented Oct 20, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 8 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@uziasferreirazup uziasferreirazup merged commit 541a18c into release/1.3.1-android Oct 20, 2020
@uziasferreirazup uziasferreirazup deleted the fix/adjust-try-to-deserializer branch October 20, 2020 18:30
uziasferreirazup added a commit that referenced this pull request Oct 21, 2020
* fix: parse color when is RGB size (#1033)

* fix: parse color when is RGB size

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* refactor: change method structure in ColorUtils.kt

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* refactor tests method names

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* fix: adjust http client default to handle exception when set body (#1050)

* fix: adjust override title when navigate in screen (#1052)

* fix: adjust context evaluation to return correct types (#1043)

* refactor: remove deprecated from constructor

* fix: adjust name action backend

* fix: adjust serialization context

* adjust try serializer

* adjust context data manager

* adjust try to deserializer

* adjust unit tests

* adjust class

* remove space extra

* adjust test in form

* adjust evaluation

* adjust lint

* fix: adjust context data evaluation to enum

* adjust lint

* fix: maxSize cache of ContextBinding (#1058)

* crash app in cache

* private val in ContextBinding

Co-authored-by: Frederico Noce <p000rbertholucci@prservicos.com.br>

* fix: BeagleFragment breaking change (#1057)

* fix: BeagleFragment breaking change

Signed-off-by: paulomeurerzup <paulo.meurer@zup.com.br>

* adjust test methods name

Signed-off-by: paulomeurerzup <paulo.meurer@zup.com.br>

* remove unnused imports

Signed-off-by: paulomeurerzup <paulo.meurer@zup.com.br>

* adjust import

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>
Co-authored-by: viniciusguardieirozup <58824112+viniciusguardieirozup@users.noreply.github.com>
Co-authored-by: Frederico Sisconetto Noce <frederico.noce@zup.com.br>
Co-authored-by: Frederico Noce <p000rbertholucci@prservicos.com.br>
Co-authored-by: paulomeurerzup <66129650+paulomeurerzup@users.noreply.github.com>
uziasferreirazup added a commit that referenced this pull request Oct 26, 2020
* fix: parse color when is RGB size (#1033)

* fix: parse color when is RGB size

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* refactor: change method structure in ColorUtils.kt

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* refactor tests method names

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* fix: adjust http client default to handle exception when set body (#1050)

* fix: adjust override title when navigate in screen (#1052)

* fix: adjust context evaluation to return correct types (#1043)

* refactor: remove deprecated from constructor

* fix: adjust name action backend

* fix: adjust serialization context

* adjust try serializer

* adjust context data manager

* adjust try to deserializer

* adjust unit tests

* adjust class

* remove space extra

* adjust test in form

* adjust evaluation

* adjust lint

* fix: adjust context data evaluation to enum

* adjust lint

* fix: maxSize cache of ContextBinding (#1058)

* crash app in cache

* private val in ContextBinding

Co-authored-by: Frederico Noce <p000rbertholucci@prservicos.com.br>

* fix: BeagleFragment breaking change (#1057)

* fix: BeagleFragment breaking change

Signed-off-by: paulomeurerzup <paulo.meurer@zup.com.br>

* adjust test methods name

Signed-off-by: paulomeurerzup <paulo.meurer@zup.com.br>

* remove unnused imports

Signed-off-by: paulomeurerzup <paulo.meurer@zup.com.br>

* fix addChildren schema (#1049)

* path parser fix (#1060)

* fix: scroll view content now can grow to match screen height

* fix: adjust some fake vulnerability changing the names used (#1071)

* fix: Remove default implementation of Cache, HttpClient and BeagleLogger  (#1070)

* fix: remove default implementation

* adjust tests

* add error when api it is empty

* adjust unit tests

* adjust unit tests

* adjust message

* adjust unit test

* adjust unit test

* format url

* adjust comment

* fix: adjust log to show toast on PreviewActivity.kt (#1072)

* fix: remove default implementation of Cache, HttpClient and BeagleLogger (#1073)

* remove network client from dependencies

* remove DefaultCache and DefaultLogger from Beagle

* add defult implementations on demo

* fix tests compiling issues and remove CacheDiskManager from Beagle

* fix BeagleDependencies tests

* handle network client nil

* remove main storyboard from BeagleDemo

* reorganizing BeagleDemo file structure

* SendRequest now executes error when there is some infrastructure problem

* fix code smell

* fix code smell

Co-authored-by: Daniel Tes Carrasque <daniel@zup.com.br>
Co-authored-by: Lucas Araújo <lucas.araujo@zup.com.br>

* adjust preview

* adjust import

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>
Co-authored-by: viniciusguardieirozup <58824112+viniciusguardieirozup@users.noreply.github.com>
Co-authored-by: Frederico Sisconetto Noce <frederico.noce@zup.com.br>
Co-authored-by: Frederico Noce <p000rbertholucci@prservicos.com.br>
Co-authored-by: paulomeurerzup <66129650+paulomeurerzup@users.noreply.github.com>
Co-authored-by: Daniel Tes <daniel@zup.com.br>
Co-authored-by: theffc <frederico.calhau@zup.com.br>
Co-authored-by: Lucas Araújo <lucas.araujo@zup.com.br>
uziasferreirazup added a commit that referenced this pull request Oct 27, 2020
* fix: parse color when is RGB size (#1033)

* fix: parse color when is RGB size

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* refactor: change method structure in ColorUtils.kt

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* refactor tests method names

Signed-off-by: Matheus Ribeiro <matheus.ribeiro@zup.com.br>

* fix: adjust http client default to handle exception when set body (#1050)

* remove shared code bettween backend and android

* adjust detekt

* refactor: move module kotlin-core to inside beagle to possible add bind in fields of core

* fix: adjust override title when navigate in screen (#1052)

* fix: adjust context evaluation to return correct types (#1043)

* refactor: remove deprecated from constructor

* fix: adjust name action backend

* fix: adjust serialization context

* adjust try serializer

* adjust context data manager

* adjust try to deserializer

* adjust unit tests

* adjust class

* remove space extra

* adjust test in form

* adjust evaluation

* adjust lint

* fix: adjust context data evaluation to enum

* adjust lint

* adjust suppor to bind

* remove module kotlin-core

* fix: adjust support to bind

* adjust code

* remove code used to test

* create unit test to mapper and flex view

* adjust import

* adjust function

* adjust layout change

* adjust unit test

* adjust unit test

* adjust unit test

Co-authored-by: Matheus Ribeiro Lima <57918064+matheusribeirozup@users.noreply.github.com>
Co-authored-by: viniciusguardieirozup <58824112+viniciusguardieirozup@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android This issue directly affects structure and logic of Android project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants