Skip to content

Remove code duplication in commands (part 9)#12194

Merged
andreslucena merged 18 commits intodevelopfrom
feature/user-call-standardization-5
Mar 15, 2024
Merged

Remove code duplication in commands (part 9)#12194
andreslucena merged 18 commits intodevelopfrom
feature/user-call-standardization-5

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented Dec 18, 2023

🎩 What? Why?

This PR attempts to standardize the way the file attachments are handled within the commands. This is actually the implementation that I was speaking with @andreslucena in this thread: #12183 (comment)

📌 Related Issues

Link your PR to an issue

Testing

  1. Make sure the pipeline is green,
  2. Attempt to create any new participatory space (assembly, participatory process, conference)
  3. Attach images to it and click save
  4. Change the images and click save
  5. See there are no errors, and the images are properly persisted
  6. Additionally, try to add an invalid file type and see the error

♥️ Thank you!

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']

@alecslupu alecslupu self-assigned this Jan 25, 2024
@alecslupu alecslupu added the type: internal PRs that aren't necessary to add to the CHANGELOG for implementers label Mar 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Mar 10, 2024
@alecslupu alecslupu requested a review from andreslucena March 13, 2024 11:25
@alecslupu alecslupu assigned andreslucena and unassigned alecslupu Mar 13, 2024
@alecslupu alecslupu marked this pull request as ready for review March 13, 2024 11:26
@andreslucena andreslucena changed the title Remove code duplication in commands Remove code duplication in commands (part 9) Mar 14, 2024
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I've just checked it out locally, and I only could find minimal details to improve. Congratulations, the code is much cleaner than it was in the classes that inherit from CreateResource/UpdateResource.

I have a few comments to update, and also I think we should add this new feature to the docs. Can you check my feedback out please? Thanks

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
github-actions[bot]
github-actions bot previously approved these changes Mar 14, 2024
@andreslucena andreslucena merged commit 8519c85 into develop Mar 15, 2024
@andreslucena andreslucena deleted the feature/user-call-standardization-5 branch March 15, 2024 07:36
andreslucena added a commit that referenced this pull request May 9, 2024
* Remove code duplication in commands

* Update docs, clean commented code

* Fix typo

* Main revert

* Patch categories

* Patch assemblies

* Fix pipeline

* Add file_attributes to commands

* Remove boilerplate in assemblies

* Cleanup Conference boilerplate

* Remove more boiler plate in initiatives and participatory process

* Fixing failing specs

* Running linters

* Apply suggestions from code review

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>

* Adjust docs

---------

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: internal PRs that aren't necessary to add to the CHANGELOG for implementers

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants