Skip to content

Conversation

@carlobeltrame
Copy link
Member

@carlobeltrame carlobeltrame commented Aug 21, 2025

Fixes #7481
Fixes #7324
Fixes #7445
Fixes #6281

image image

To be discussed / decided / done:

  • Is the location of the switch in the UI fine, or should it be in the danger zone or on the team page?
  • Write extensive API permission tests for accessing shared camps and all other entities
  • Find all places in the UI where we need to hide / disable things for sharing visitors
    • Activity filtering UI
    • Any "add xyz" buttons
    • Anywhere there is a console error
    • Improve readability of readonly fields
    • more...

@carlobeltrame carlobeltrame force-pushed the shared-camps branch 2 times, most recently from 19845e2 to 5f0de3a Compare August 29, 2025 15:02
@carlobeltrame carlobeltrame added the deploy! Creates a feature branch deployment for this PR label Sep 2, 2025
@github-actions
Copy link

github-actions bot commented Sep 2, 2025

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

@carlobeltrame carlobeltrame removed the deploy! Creates a feature branch deployment for this PR label Sep 4, 2025
"self": {
"href": "escaped_value"
},
"sharedBy": "escaped_value"
Copy link
Member Author

Choose a reason for hiding this comment

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

Anyone knows why this isn't wrapped in a { "href": ... }?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably because it's null. Maybe we should disable escaping for null values...

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, it may even be in both places, because api platform cannot differentiate between a null ref and a null value.

private static function getContentNodeEndpointQueryCountRanges(): array {
return [
'/content_nodes' => [10, 12],
'/content_nodes' => [11, 13],
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know why this went up...

Copy link
Member Author

Choose a reason for hiding this comment

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

/activity_responsibles: 6
/activity_responsibles/item: 8
/camps: 15
/camps: 18
Copy link
Member Author

Choose a reason for hiding this comment

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

What are the numbers in this snapshot? Query count? Why did this go up?

Copy link
Member Author

Choose a reason for hiding this comment

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

@carlobeltrame carlobeltrame force-pushed the shared-camps branch 2 times, most recently from e2f1de3 to 48d92bb Compare September 4, 2025 05:49
{{ $tc(`components.campAdmin.campSharingSettings.copyCampLink`) }}
</v-tooltip>
</v-list-item-action>
<v-list-item-action v-if="isManager" class="align-self-start">
Copy link
Member Author

Choose a reason for hiding this comment

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

As with all camp settings, the frontend only allows managers to change this, but in the API it is also possible for members. #3440

@carlobeltrame carlobeltrame marked this pull request as ready for review September 4, 2025 06:05
@carlobeltrame carlobeltrame changed the title WIP share camps Shared camps Sep 4, 2025
@carlobeltrame carlobeltrame mentioned this pull request Sep 4, 2025
8 tasks
@carlobeltrame carlobeltrame added the deploy! Creates a feature branch deployment for this PR label Sep 5, 2025
@carlobeltrame carlobeltrame force-pushed the shared-camps branch 2 times, most recently from ee508e6 to 3972403 Compare September 6, 2025 01:25
@carlobeltrame carlobeltrame added deploy! Creates a feature branch deployment for this PR and removed deploy! Creates a feature branch deployment for this PR labels Sep 6, 2025
@carlobeltrame carlobeltrame removed the deploy! Creates a feature branch deployment for this PR label Sep 6, 2025
@usu usu added this pull request to the merge queue Oct 3, 2025
Merged via the queue into ecamp:devel with commit 15b332a Oct 3, 2025
46 checks passed
@github-actions github-actions bot mentioned this pull request Oct 3, 2025
@carlobeltrame carlobeltrame deleted the shared-camps branch October 3, 2025 21:08
@github-actions github-actions bot mentioned this pull request Oct 3, 2025
carlobeltrame added a commit to carlobeltrame/ecamp3 that referenced this pull request Oct 4, 2025
Follow-up for ecamp#8004

Querying by isPrototype OR isShared is slow, because databases don't
like OR conditions too much. We work around this by adding a combined
isPublic field which is enforced to always contain isShared || isPrototype
and have the DB queries filter by that.
carlobeltrame added a commit to carlobeltrame/ecamp3 that referenced this pull request Oct 4, 2025
Follow-up for ecamp#8004

Querying by isPrototype OR isShared is slow, because databases don't
like OR conditions too much. We work around this by adding a combined
isPublic field which is enforced to always contain isShared || isPrototype
and have the DB queries filter by that.
carlobeltrame added a commit to carlobeltrame/ecamp3 that referenced this pull request Oct 4, 2025
@github-actions github-actions bot mentioned this pull request Oct 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

before-vue3 deploy! Creates a feature branch deployment for this PR

Projects

None yet

5 participants