Comments (7)
I've not had the opportunity to test it yet, but I think the attached commit will solve it. Just about to pull that into develop branch.
from xibo.
Thanks Dan, this has fixed it :)
from xibo.
Great!
I can feel some re-factoring coming on for the next version :)
from xibo.
Hey @dasgarner - not sure if you have Unit Tests in place, but for this sort of stuff, it would be a big help. Means you can run the tests and see what is broken without needing to re-test the whole application.
from xibo.
Well, that is a good point - no, there aren't any unit tests as such and yes there should be. There have been pressing demands to get 1.7 out, which has taken priority. We do have a python api test library started and we do have the bones of a webdriver based UI testing suite - but they are miles away from complete.
1.8 will be quite a big re-factor where we will pull the XLF into the data model, which means representing regions and media in the DB. That will allow us to support playlists that are reusable across many layouts, and even dynamic playlists.
This means a lot of the core code needs re-factoring - we plan to use a far more OO approach (keep in mind some of the current code is from 2005!) with objects to represent each of the items we are interested in, with factory classes to get and fetch them, etc. At this point I will be adding unit tests (if you have good suggestions for a framework, then please let me know).
from xibo.
Hey Dan
This all sounds good. Overall, the code is good, it can just get very complex in parts!
I don't know about frameworks for unit testing, but myself, I am a CakePHP developer - though in terms of general frameworks, there are many good ones. Given the complexity of the database set up, any framework with a good ORM would make life a lot easier (no more writing SQL!), so I would say CakePHP, Laravel or Yii frameworks would be the ones to consider.
from xibo.
Rewriting into Laravel is something i've looked at - but it would represent an enormous body of work :-)
I'm thinking that PHPUnit would be the best choice, but of course will do some more research when the time comes!
from xibo.
Related Issues (20)
- Widgets: Add the ability to filter datasets by display tag HOT 1
- Grid filtering : Tag filter does not trigger table reload HOT 1
- Widgets: Text/Ticker/Etc fail to load on devices with webviews older than Chrome 49 HOT 1
- Schedule : Layout/Campaign filter "disappears" after add/edit form is opened HOT 1
- README: update with clearer installation instructions.
- Twig error on development CMS's
- Widgets: select language for clock/calendar HOT 1
- Displays: language option doesn't have en_US
- Users: setting a users password only works if you also change something else on the form HOT 1
- Displays: sync groups do not save to folders HOT 1
- Folders : non super admin user created folder permission issue HOT 3
- Tags : issues with required value HOT 1
- Ad Campaigns: edit option not accessible to a non-super admin HOT 1
- Ad Campaigns: cannot set sharing options on new campaign HOT 1
- Users: home folder goes back to root on edit form HOT 1
- Display Group: sorting by "member" does not work HOT 1
- Interactive: support for a "return to schedule" action/command which cancels out all currently active interactions
- Display API: filter by whether XMR is registered HOT 1
- Display Group: Send command errors if XMR is not configured, but doesn't show which display is the issue HOT 1
- SAML: fix login/logout issues with OKTA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xibo.