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

Baladiya ( commune ) Fetch #36

Closed
Redaloukil opened this issue Oct 6, 2020 · 9 comments
Closed

Baladiya ( commune ) Fetch #36

Redaloukil opened this issue Oct 6, 2020 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@Redaloukil
Copy link
Contributor

Redaloukil commented Oct 6, 2020

As I see in the api https://github.com/Fcmam5/algeria-api/blob/develop/data/WilayaList.json , Baladiya list is attached to each Daira, Can anyone confirm ?

If it's the case, I suggest we add the following functionalities :

Get All Baladiya's attached to a Daira
By a given Daira, retrieve baladiya's List.

Get All Baladiya's attached to a Wilaya
By a given wilaya, retrieve baladya's List.

Get Wilaya and Daira in which the baladiya is located
By a given baladiya, Retrive the WIlaya and Daira.

@Fcmam5
Copy link
Collaborator

Fcmam5 commented Oct 7, 2020

I like the idea, sure thing let's work on:

  • getBaladyiatsForWilaya
  • getBaladyiatsForDaira
  • getDairaByBaladyiaName

Would you like to work on this? We'd like to have each feature by PR

@Fcmam5 Fcmam5 added the enhancement New feature or request label Oct 7, 2020
@Redaloukil
Copy link
Contributor Author

Yes, I would like to work on this. assign me to this issue please.

@Fcmam5
Copy link
Collaborator

Fcmam5 commented Oct 10, 2020

@Redaloukil please, which feature of the 3 I mentioned are you working on ATM? I'm just asking so we can create more issues to track the other ones separately

@Redaloukil
Copy link
Contributor Author

@Fcmam5 I'm working on getBaladyiatsForWilaya currently.

@Redaloukil
Copy link
Contributor Author

@Fcmam5 I have few doubts about projectWilayafunction :
The name of the function seems confusing because it seems like it's applicable only for Wilaya object but I saw that it was applied for Dairats and could be applied for Baladyia. ( As my understanding, the function maps the input (object/array of objects) to return (object/array of objects) with corresponding attribute array introduced in the project array.
Should we rename the function projectWilaya and re document it ?

@Fcmam5
Copy link
Collaborator

Fcmam5 commented Oct 11, 2020

@Fcmam5 I have few doubts about projectWilayafunction :
The name of the function seems confusing because it seems like it's applicable only for Wilaya object but I saw that it was applied for Dairats and could be applied for Baladyia. ( As my understanding, the function maps the input (object/array of objects) to return (object/array of objects) with corresponding attribute array introduced in the project array.
Should we rename the function projectWilaya and re document it ?

I totally agree and I even raised something related to it in #27. Let's just keep it as it is for now and we work on it later. Just import it and use a different name for you variable as it's confusing as you said.

Thank you again for raising it.

@Fcmam5
Copy link
Collaborator

Fcmam5 commented Oct 11, 2020

Also, I created #42 and #43 for the other features you suggested. Thank you very much 🙏 !

@Fcmam5
Copy link
Collaborator

Fcmam5 commented Oct 11, 2020

@all-contributors add @Redaloukil for ideas

@allcontributors
Copy link
Contributor

@Fcmam5

I've put up a pull request to add @Redaloukil! 🎉

@Fcmam5 Fcmam5 closed this as completed Oct 15, 2020
@ZibanPirate ZibanPirate moved this to Backlog in DzCode i/o Feb 13, 2022
@ZibanPirate ZibanPirate moved this from Backlog to Released in DzCode i/o Feb 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Released
Development

No branches or pull requests

2 participants