This module is a plugin for Addressfield. It provides a user friendly romanian address form.
Also provides a CSV with all the localities in Romania.

Implementation is based on the Addressfield_hu module

Project page

https://www.drupal.org/sandbox/k_zoltan/2136505

Git

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/k_zoltan/2136505.git addressfield_ro
cd addressfield_ro

Manual reviews of other projects:
https://www.drupal.org/node/2169353#comment-9635479
https://www.drupal.org/node/2427731#comment-9632109
https://www.drupal.org/node/2362563#comment-9631937

More reviews:
https://www.drupal.org/node/2319575#comment-9635289
https://www.drupal.org/node/2184079#comment-9635311
https://www.drupal.org/node/2427175#comment-9639929

Comments

k_zoltan’s picture

Category: Support request » Task
Issue summary: View changes
k_zoltan’s picture

Issue summary: View changes
k_zoltan’s picture

Status: Active » Needs review
PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxk_zoltan2136505git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.

k_zoltan’s picture

Status: Closed (won't fix) » Needs review

The errors reported the the pareview robot have been corrected.

Many thanks to the improvements made by mihai_brb

k_zoltan’s picture

That single spelling error in the CSV file can't be corrected since that is the name of the location.

sajiniantony’s picture

Hello,

Line no.142 in the file addressfield_ro.import.inc has the variable name typed wrongly as $$counter. See the line below

$context['message'] = t('Processing item %count', array('%count' => $$counter));

sajiniantony’s picture

Status: Needs review » Needs work
Rahul Seth’s picture

Automated Review

Review of the 7.x-1.x branch (commit e81f182):

Codespell has found some spelling errors in your code.

./includes/addressfield_ro.csv:3853: Sergent ==> Sergeant

No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.

But as you mention, CSV file can't be corrected since that is the name of the location. So it's ok.

Manual Review

Individual user account
Yes: Follows the guidelines for individual user accounts.
No duplication
No: Causes module duplication and/or fragmentation.
Master Branch
Yes: Follows the guidelines for master branch.
Licensing
Yes: Follows the licensing requirements.
3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.
README.txt/README.md
No: Does not follow the guidelines for in-project documentation and/or the README Template.
Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.
Secure code
Yes: Meets the security requirements.
Coding style & Drupal API usage
[List of identified issues in no particular order. Use (*) and (+) to indicate an issue importance. Replace the text below by the issues themselves:
  1. (*) Major finding, needs work
  2. (+) Release blocker
  3. Just a recommendation
  4. ...]

The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.

If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.

This review uses the Project Application Review Template.

Suggestions: You can use db_merge instead of db_insert and db_update in addressfield_ro_address_save function.

k_zoltan’s picture

Status: Needs work » Needs review

Fixed.
Thanks, @sajiniantony.

k_zoltan’s picture

Thanks for the review Rahul Seth.

naveenvalecha’s picture

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

k_zoltan’s picture

Status: Needs review » Reviewed & tested by the community

Based on @sajiniantony and @Rahul Seth review I think this issue could be set to RTBC

naveenvalecha’s picture

Status: Reviewed & tested by the community » Needs review

First, thanks for your contribution.Awesome project!
Applicant can't set the application status to RTBC. See the application workflow https://www.drupal.org/node/532400
you can also invite your friends/office colleagues to review the project applications and that will also speedup the review process.
I would suggest you to take review bonus to come in Admin Radar.

k_zoltan’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus
k_zoltan’s picture

Issue summary: View changes
k_zoltan’s picture

Issue summary: View changes

Does this mean this project application / issue could be set as RTBC?
What is your opinion @sajiniantony @rahul-seth???

klausi’s picture

Issue summary: View changes

Removing the non-review comments from the issue summary.

klausi’s picture

Assigned: Unassigned » misc
Status: Needs review » Reviewed & tested by the community
Issue tags: -PAreview: review bonus

manual review:

  1. project page is too short. Why can't this be part of the core addressfield module? Why do you have your own database table? Why do you have to hard code a list of addresses and cannot allow any address? Please add the use case to the project page.
  2. addressfield_ro_delete_form(): do not use die(), the drupal_not_found() is enough here.

But otherwise looks good to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.

Assigning to MiSc as he might have time to take a final look at this.

k_zoltan’s picture

Issue summary: View changes
Issue tags: +PAreview: review bonus

Updated project page.

Removed die() from the addressfield_ro_delete_form().

The module allows the management of locations. It has a separate admin interface for that. So we didn't hardcoded them.

We needed a separate table to store these locations. This is the addon of this module that it transforms the free-text textfield of the Addressfield module for the City field to a dropdown with an autocomplete field, to have coherent user input.

Done 3 more reviews, I hope now I'm qualified for the review bonus. :)

misc’s picture

Looks ok for me, just a question - who is looking for the git vetted user access? I see there are three different contributors in the project.

kscheirer’s picture

Status: Reviewed & tested by the community » Postponed (maintainer needs more info)

Changing status to "postponed" based on #22.

k_zoltan’s picture

Status: Postponed (maintainer needs more info) » Reviewed & tested by the community

There are two commiters: https://www.drupal.org/node/2136505/committers

mihai_brb and k_zoltan
(Mihai Barabas and mihai_brb is the same person)

The module is started by me @k_zoltan and @mihai_brb has started to contribute after some months.
We used to be collegues working together for the company Reea

@mihai_brb applied also recently for the Git vetted user role with his own module, and he already got it: [D7] Commerce Shipping Country https://www.drupal.org/node/2398043

Hope I answered your questions.

misc’s picture

Assigned: misc » klausi

Really don't know how to handle an application then there are more than one commiter, I assign this to klausi for another input.

klausi’s picture

Assigned: klausi » misc

Looks like k_zoltan did enough work on this so that we can give him the git vetted user role, so this should not be a problem.

klausi’s picture

Assigned: misc » Unassigned
Status: Reviewed & tested by the community » Fixed

no other objections for more than a week, so ...

Thanks for your contribution, k_zoltan!

I updated your account so you can promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.