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: Attributes reverse, padding, physics, controller, scrollDirection, shrinkWrap not implemented in ParseLiveGridWidget #761

Merged
merged 37 commits into from May 20, 2023

Conversation

pastordee
Copy link
Contributor

@pastordee pastordee commented Jun 2, 2022

New Pull Request Checklist

Issue Description

Implementation of Scroll Direction and other other parameters/attributes

Related issue: #760

Approach

TODOs before merging

n/a

  • Add tests
  • Add changes to documentation (guides, repository pages, in-code descriptions)
  • A changelog entry

Scroll Direction and other parameters/attributes
@parse-github-assistant
Copy link

parse-github-assistant bot commented Jun 2, 2022

Thanks for opening this pull request!

  • ❌ Please link an issue that describes the reason for this pull request, otherwise your pull request will be closed. Make sure to write it as Closes: #123 in the PR description, so I can recognize it.

@codecov
Copy link

codecov bot commented Jun 2, 2022

Codecov Report

Patch coverage has no change and project coverage change: -0.08 ⚠️

Comparison is base (366f2dd) 39.11% compared to head (85dc209) 39.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #761      +/-   ##
==========================================
- Coverage   39.11%   39.04%   -0.08%     
==========================================
  Files          57       57              
  Lines        3280     3286       +6     
==========================================
  Hits         1283     1283              
- Misses       1997     2003       +6     
Impacted Files Coverage Δ
...ackages/flutter/lib/src/utils/parse_live_grid.dart 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mtrezza mtrezza linked an issue Jun 2, 2022 that may be closed by this pull request
3 tasks
@mtrezza
Copy link
Member

mtrezza commented Jun 2, 2022

Is this a bug fix or a feature extension?

@fischerscode
Copy link
Contributor

It's a mix, I guess. Maybe more of a bug fix, since the parameters already exist and are just not used (bug).

@fischerscode fischerscode mentioned this pull request Jun 2, 2022
5 tasks
@mtrezza
Copy link
Member

mtrezza commented Jun 2, 2022

Does this PR require any tests or doc changes? @pastordee could you please go through the TODOs at the top?

@mtrezza mtrezza changed the title Use all parameters of ParseLiveGridWidget (Scroll Direction) fix: parameters of ParseLiveGridWidget not used Jun 2, 2022
@mtrezza mtrezza changed the title fix: parameters of ParseLiveGridWidget not used fix: some parameters of ParseLiveGridWidget are not used Jun 2, 2022
@mtrezza mtrezza requested a review from a team June 2, 2022 23:20
@pastordee
Copy link
Contributor Author

sorry guys is a bug fix some of the parameters are not used

@pastordee
Copy link
Contributor Author

Does this PR require any tests or doc changes? @pastordee could you please go through the TODOs at the top?

no it doesn't need a test

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please add an entry to the flutter changelog?

Since we don't know with which version this PR will be released, you can add this to the top of the changelog:

# Unreleased

### Bug Fixes

* some parameters of `ParseLiveGridWidget` are not used ([#761](https://github.com/parse-community/Parse-SDK-Flutter/pull/761))

no it doesn't need a test

Code coverage reports that the added lines are not covered by tests, so they will decrease coverage. Could you add tests or maybe just expand existing tests?

fischerscode
fischerscode previously approved these changes Jun 3, 2022
Copy link
Contributor

@fischerscode fischerscode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the already existing parameters are only forwarded to the Flutter widget, I don't see what could go wrong with this.

Comment regarding the missing tests:
I think we can merge this without adding tests, since we currently have no tests regarding widgets and in my opinion this PR doe not make the bad situation worse. (Of course I don't think we shouldn't add tests for this parameters when adding tests for the ParseLive
Widgets.)*

@mtrezza
Copy link
Member

mtrezza commented Jun 3, 2022

If it takes too much research to add tests for this since we don't test widgets yet at all, then we can merge just to fix the bug. But we will at some point begin to make tests a requirement for merging a PR. Otherwise - by experience - these tests are unlikely to be added in the future and coverage will continue to decrease.

@fischerscode You already approved this PR, but note that it's missing a changelog entry, that is a hard requirement for PRs already.

@fischerscode
Copy link
Contributor

it's missing a changelog entry

Sorry, thought we want to create it automatically for the next release.

@mtrezza
Copy link
Member

mtrezza commented Jun 3, 2022

Sorry, thought we want to create it automatically for the next release.

I wish! But I think it will take some time to add auto-release to this mono repo.

@pastordee
Copy link
Contributor Author

Sorry, thought we want to create it automatically for the next release.

I wish! But I think it will take some time to add auto-release to this mono repo.

added to the change log

packages/flutter/CHANGELOG.md Outdated Show resolved Hide resolved
@pastordee
Copy link
Contributor Author

Sorry, thought we want to create it automatically for the next release.

I wish! But I think it will take some time to add auto-release to this mono repo.

Hi can we approve and merge this please.

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR will be released as flutter version 3.1.4; to merge this, the flutter package version needs to be updated as well.

mbfakourii
mbfakourii previously approved these changes Dec 19, 2022
Copy link
Member

@mbfakourii mbfakourii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mtrezza
Which parts need to be changed?

@pastordee
Copy link
Contributor Author

Done

@mbfakourii mbfakourii requested a review from a team May 14, 2023 12:29
@mbfakourii
Copy link
Member

mbfakourii commented May 14, 2023

@pastordee
It seems that you have a conflict

This branch has conflicts that must be resolved

@pastordee
Copy link
Contributor Author

@pastordee It seems that you have a conflict

This branch has conflicts that must be resolved

Sorted

mbfakourii
mbfakourii previously approved these changes May 17, 2023
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a changelog entry

@mbfakourii
Copy link
Member

mbfakourii commented May 20, 2023

@pastordee I think you should bump the version

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect changelog entry

packages/flutter/CHANGELOG.md Outdated Show resolved Hide resolved
mtrezza
mtrezza previously approved these changes May 20, 2023
Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just the package version needs to be bumped.

Copy link
Member

@mbfakourii mbfakourii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good

@mtrezza mtrezza merged commit f8942ac into parse-community:master May 20, 2023
12 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use all parameters of ParseLiveGridWidget
5 participants