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

ENHANCEMENT: option to hide global files #177

Closed
wants to merge 1 commit into from

Conversation

anselmdk
Copy link

@anselmdk anselmdk commented Feb 1, 2015

Allowing to hide global folders in AssetAdmin.

Config example:

FileSubsites:
  show_global_folders: false

@dhensby
Copy link
Contributor

dhensby commented Feb 2, 2015

I'm not entirely sure how closely this module wants to follow semver, but this is a new feature and so shouldn't make it into the 1.0 branch. Instead it should be against master.

@anselmdk
Copy link
Author

anselmdk commented Feb 3, 2015

@dhensby thanks for reviewing this. Given that this is a non-breaking enhancement I believe it should be in the 1.0 branch. I wouldn't want to be forced to switch my composer.json to update from master for this, as that would possibly introduce breaking changes to my codebase.
If you disagree with my reasoning, let me know, and I'll re-open a pull request to master.

@dhensby
Copy link
Contributor

dhensby commented Feb 3, 2015

For SemVer a change of this kind has to go into the minor release (1.x) not a patch (1.0.x) and therefore this needs to be against master (which I assume is the 1.x release).

I can add a PR to alias master as 1.x so that you can do "~1.0" as a version constraint and get the master branch if your tracking dev dependencies.

@dhensby
Copy link
Contributor

dhensby commented Feb 3, 2015

Hmm, it does seem that master is tracking ss 3.2 and thus actually a 2.0.x release.

@tractorcow thoughts?

@tractorcow
Copy link
Contributor

I don't think we need to follow semantic versioning too closely, outside of the framework / cms (and their dependencies), although it's still a good model to follow. :)

My question is, how are global assets managed if they are permanently filtered out? Are admins not even allowed to view them, or are they just unrecoverable?

@anselmdk
Copy link
Author

anselmdk commented Feb 8, 2015

@tractorcow the idea is that global files would be accessible from the main site, while site-specific files would be accessible from each subsite.
In the code $subsiteID would be 0 on the main site.

* @config
* @var bool
*/
private static $show_global_folders = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

This config can't be turned off via YML, due to merge rules ignoring falsey values being merged with truthy.

Could we flip the meaning so that the default is false? E.g. 'hide_global_folders = false'.

@tractorcow
Copy link
Contributor

We are now following semver on this module, so um, can you please re-open this PR on master? Sorry to be a bummer!

@tractorcow tractorcow closed this Feb 4, 2016
@anselmdk
Copy link
Author

anselmdk commented Feb 4, 2016

@tractorcow okay, I haven't worked on the affected project for a while. I'll revisit this, once I'll work on upgrading that project.

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.

None yet

3 participants