Giter Site home page Giter Site logo

ninjaforms-uploads-azure's People

Contributors

clorith avatar dependabot[bot] avatar fnpen avatar soderlind avatar

Watchers

 avatar  avatar  avatar  avatar

ninjaforms-uploads-azure's Issues

Ensure classes not covered by autoloaders have no local-relationship

Currently there are calls to use NF_FU_* classes (for example use NF_FU_Fields_Upload which is being extended by the plugins own Fields_Upload class), but since the code is namespaced, these are looked for within the currently active namespace, where the classes do not exist since they belong to a different plugin.

Classes that are not explicitly covered by the plugins autoloader need to be declared as part of the global namespace (prefixed with \), since the autoloader can not be built on each site that uses the plugin, and therefore has no guarantee that it will find the class otherwise, leading to fatal errors.

Clean up hardcoded keys

There are currently hardcoded, but commented out, connection strings. These should not be here, as they contain API keys, if even for a test environment.

Implement more user friendly account-definitions

Currently the way to create a connection to Azure requires a rather long handcrafted string which may be easy to get wrong.

Instead I propose we change DEKODE_NINJAFORMS_AZURE_CONNECTION_STRING to a set of strings, preferably with a naming convention that suits other Azure plugins that exists in the WP ecosystem.

Let's consider using these:

  • MICROSOFT_AZURE_ACCOUNT_NAME
  • MICROSOFT_AZURE_ACCOUNT_KEY
  • MICROSOFT_AZURE_CONTAINER
  • MICROSOFT_AZURE_CNAME

The MICROSOFT_AZURE_CNAME entry may not necessarily be needed here (it is used to represent a site-specific URL that is an alias for the default Microsoft blobstorage URL, so it looks nicer and more familiar to end users).

Document local test setups

Currently there's a short text identifying a test-string to use for a local test, we should probably document what software is needed for local testing as well (for example the local Azure Blob Storage test environment).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.